diff options
author | John Reck <jreck@google.com> | 2016-07-28 15:36:11 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2016-07-29 07:56:02 -0700 |
commit | 2d5b8d73929a38b019c6b6276d4a19542b990f0c (patch) | |
tree | d0224acca3391c34e4b2c33aac2bc8c685bea93b /libs/hwui/FrameInfo.cpp | |
parent | 255ad67b2e61c5ac407c5ef539275b4de99186b4 (diff) |
Teach JankTracker about new swap behaviors
Bug: 30440166
If we are using HWC2, there's a change in timing
when in triple buffering with the pipelined offsets.
This changes JankTracker to recognize that and silently
erase that from the total duration
Change-Id: Ib1fd4209070f17dbd2baed707c8cf73fb11c3cf2
Diffstat (limited to 'libs/hwui/FrameInfo.cpp')
-rw-r--r-- | libs/hwui/FrameInfo.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/hwui/FrameInfo.cpp b/libs/hwui/FrameInfo.cpp index 41e22332d8ed..09b3945c7f55 100644 --- a/libs/hwui/FrameInfo.cpp +++ b/libs/hwui/FrameInfo.cpp @@ -35,8 +35,14 @@ const std::string FrameInfoNames[] = { "IssueDrawCommandsStart", "SwapBuffers", "FrameCompleted", + "DequeueBufferDuration", + "QueueBufferDuration", }; +static_assert((sizeof(FrameInfoNames)/sizeof(FrameInfoNames[0])) + == static_cast<int>(FrameInfoIndex::NumIndexes), + "size mismatch: FrameInfoNames doesn't match the enum!"); + void FrameInfo::importUiThreadInfo(int64_t* info) { memcpy(mFrameInfo, info, UI_THREAD_FRAME_INFO_SIZE * sizeof(int64_t)); } |