diff options
author | John Reck <jreck@google.com> | 2015-04-28 13:50:00 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2015-04-28 13:50:00 -0700 |
commit | 240ff6246a29602539fd0295274e1c769e743a2e (patch) | |
tree | d40e9aaf5e0871ba6270b31ccfbae9468a09a1ab /libs/hwui/FrameInfo.h | |
parent | ba474807b3e46c1e6127d461214deafc22f53766 (diff) | |
download | frameworks_base-240ff6246a29602539fd0295274e1c769e743a2e.zip frameworks_base-240ff6246a29602539fd0295274e1c769e743a2e.tar.gz frameworks_base-240ff6246a29602539fd0295274e1c769e743a2e.tar.bz2 |
Skip frames with no damage
Bug: 20464038
Change-Id: Iae3aa9baf1d03c3aa443a39373e2bbd4a3910fad
Diffstat (limited to 'libs/hwui/FrameInfo.h')
-rw-r--r-- | libs/hwui/FrameInfo.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/hwui/FrameInfo.h b/libs/hwui/FrameInfo.h index 65daf03..c8189b8 100644 --- a/libs/hwui/FrameInfo.h +++ b/libs/hwui/FrameInfo.h @@ -53,6 +53,7 @@ enum class FrameInfoFlags { kWindowLayoutChanged = 1 << 0, kRTAnimation = 1 << 1, kSurfaceCanvas = 1 << 2, + kSkippedFrame = 1 << 3, }; MAKE_FLAGS_ENUM(FrameInfoFlags) @@ -101,6 +102,10 @@ public: set(FrameInfoIndex::kFrameCompleted) = systemTime(CLOCK_MONOTONIC); } + void addFlag(FrameInfoFlags flag) { + set(FrameInfoIndex::kFlags) |= static_cast<uint64_t>(flag); + } + int64_t operator[](FrameInfoIndex index) const { if (index == FrameInfoIndex::kNumIndexes) return 0; return mFrameInfo[static_cast<int>(index)]; |