summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfo.cpp
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2016-07-29 10:08:16 -0700
committer John Reck <jreck@google.com> 2016-07-29 10:08:16 -0700
commitfb5c675b7e1fee074f19cf1866b5dda0785dbe64 (patch)
tree54c983e39ad8a3ee94062b8c509054ba87c9c81d /libs/hwui/FrameInfo.cpp
parent942ad98481be73e1f4efe0e6837d8930ec4d9d6b (diff)
parent67daab6a1e0897cd0528a19071eeb9f4a2b00b49 (diff)
resolve merge conflicts of 67daab6 to nyc-mr1-dev-plus-aosp
Change-Id: I35f867b8d6408a7eae9cf5643f0908259de90cb1
Diffstat (limited to 'libs/hwui/FrameInfo.cpp')
-rw-r--r--libs/hwui/FrameInfo.cpp6
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));
}