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

Commit 0884711a authored by Rachel Lee's avatar Rachel Lee
Browse files

Assert kFrameTimelinesLength for sync.

Want to keep the value in sync with java definition.

Test: change kFrameTimelinesLength and m to observe assert
Bug: 258694738
Change-Id: Id6f53a809015ded83fc15fa8a99c11573559e3b0
parent 0311fdd6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -23,6 +23,9 @@

namespace android::gui {

static_assert(VsyncEventData::kFrameTimelinesLength == 7,
              "Must update value in DisplayEventReceiver.java#FRAME_TIMELINES_LENGTH (and here)");

int64_t VsyncEventData::preferredVsyncId() const {
    return frameTimelines[preferredFrameTimelineIndex].vsyncId;
}