diff options
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 816ef56..bcfae1b 100644 --- a/libs/hwui/FrameInfo.h +++ b/libs/hwui/FrameInfo.h @@ -69,6 +69,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; } |