From bf3c602284f9a344faf185c3a5e94a264ba44c4f Mon Sep 17 00:00:00 2001 From: John Reck Date: Tue, 2 Jun 2015 15:55:00 -0700 Subject: More colors, now with material colors Bug: 18052916 Change-Id: I66c2573d796338ee7b7d0ddf240b90cc78a71ce5 --- libs/hwui/FrameInfo.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libs/hwui/FrameInfo.h') diff --git a/libs/hwui/FrameInfo.h b/libs/hwui/FrameInfo.h index c8189b8..8faa80a 100644 --- a/libs/hwui/FrameInfo.h +++ b/libs/hwui/FrameInfo.h @@ -66,6 +66,12 @@ public: UiFrameInfoBuilder& setVsync(nsecs_t vsyncTime, nsecs_t intendedVsync) { set(FrameInfoIndex::kVsync) = vsyncTime; set(FrameInfoIndex::kIntendedVsync) = intendedVsync; + // Pretend the other fields are all at vsync, too, so that naive + // duration calculations end up being 0 instead of very large + set(FrameInfoIndex::kHandleInputStart) = vsyncTime; + set(FrameInfoIndex::kAnimationStart) = vsyncTime; + set(FrameInfoIndex::kPerformTraversalsStart) = vsyncTime; + set(FrameInfoIndex::kDrawStart) = vsyncTime; return *this; } -- cgit v1.1