Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e7873e10 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Minor tweaks to VK_GOOGLE_display_timing"

parents ea3a2b8f 2c6355d7
Loading
Loading
Loading
Loading
+12 −9
Original line number Diff line number Diff line
@@ -108,15 +108,18 @@ int InvertTransformToNative(VkSurfaceTransformFlagBitsKHR transform) {

class TimingInfo {
   public:
    TimingInfo() {}
    TimingInfo(const VkPresentTimeGOOGLE* qp) {
        vals_.presentID = qp->presentID;
        vals_.desiredPresentTime = qp->desiredPresentTime;
        timestamp_desired_present_time_ = 0;
        timestamp_actual_present_time_ = 0;
        timestamp_render_complete_time_ = 0;
        timestamp_composition_latch_time_ = 0;
    }
    TimingInfo()
        : vals_{0, 0, 0, 0, 0},
          timestamp_desired_present_time_(0),
          timestamp_actual_present_time_(0),
          timestamp_render_complete_time_(0),
          timestamp_composition_latch_time_(0) {}
    TimingInfo(const VkPresentTimeGOOGLE* qp)
        : vals_{qp->presentID, qp->desiredPresentTime, 0, 0, 0},
          timestamp_desired_present_time_(0),
          timestamp_actual_present_time_(0),
          timestamp_render_complete_time_(0),
          timestamp_composition_latch_time_(0) {}
    bool ready() {
        return (timestamp_desired_present_time_ &&
                timestamp_actual_present_time_ &&