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 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; } |