summaryrefslogtreecommitdiffstats
path: root/libs/hwui/FrameInfo.h
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2015-06-02 23:16:22 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-06-02 23:16:31 +0000
commit6058251939e417ed764d76fbde77eefc964d0ee6 (patch)
treeec5b7b222d704227a23e05ad45fa5d8107a32923 /libs/hwui/FrameInfo.h
parent4e14da5695b5457ae7da53c7f3079c71e37b2e19 (diff)
parentbf3c602284f9a344faf185c3a5e94a264ba44c4f (diff)
downloadframeworks_base-6058251939e417ed764d76fbde77eefc964d0ee6.zip
frameworks_base-6058251939e417ed764d76fbde77eefc964d0ee6.tar.gz
frameworks_base-6058251939e417ed764d76fbde77eefc964d0ee6.tar.bz2
Merge "More colors, now with material colors" into mnc-dev
Diffstat (limited to 'libs/hwui/FrameInfo.h')
-rw-r--r--libs/hwui/FrameInfo.h6
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;
}