diff options
author | 2016-07-29 16:31:38 +0000 | |
---|---|---|
committer | 2016-07-29 16:31:38 +0000 | |
commit | 67daab6a1e0897cd0528a19071eeb9f4a2b00b49 (patch) | |
tree | 23a3b148e0f9319a9a47ed56abc200b2dd58e21d /libs/hwui/FrameInfo.cpp | |
parent | b2db4028990c041c3dd9abdbecf9931a0363f3e1 (diff) | |
parent | 2d5b8d73929a38b019c6b6276d4a19542b990f0c (diff) |
Teach JankTracker about new swap behaviors
am: 2d5b8d7392
Change-Id: I28afc748f8a43944863bd752c3bd2cb983d19c23
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)); } |