diff options
author | John Reck <jreck@google.com> | 2015-06-02 15:55:00 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2015-06-02 16:13:56 -0700 |
commit | bf3c602284f9a344faf185c3a5e94a264ba44c4f (patch) | |
tree | fdf404c8f4f4859290157229cc1689ed5b0b1df7 /libs/hwui/FrameInfo.h | |
parent | 233241f13d5d7f841d3db80408429d4d0a528c78 (diff) |
More colors, now with material colors
Bug: 18052916
Change-Id: I66c2573d796338ee7b7d0ddf240b90cc78a71ce5
Diffstat (limited to 'libs/hwui/FrameInfo.h')
-rw-r--r-- | libs/hwui/FrameInfo.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/hwui/FrameInfo.h b/libs/hwui/FrameInfo.h index c8189b8df955..8faa80a24a58 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; } |