summaryrefslogtreecommitdiffstats
path: root/libs/hwui/renderthread/TimeLord.h
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2014-12-19 23:21:44 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-12-19 23:21:44 +0000
commited3c2962be1e2966c3b46f20e81d2902a8302d8b (patch)
treed159399de6dec180d4afb71681ed0b748dd53fb3 /libs/hwui/renderthread/TimeLord.h
parent19ecc7847faf0f6800c342eab806358d68b610c1 (diff)
parent165fb8f5aa0709a8dc35f99a9b81f6906452a648 (diff)
downloadframeworks_base-ed3c2962be1e2966c3b46f20e81d2902a8302d8b.zip
frameworks_base-ed3c2962be1e2966c3b46f20e81d2902a8302d8b.tar.gz
frameworks_base-ed3c2962be1e2966c3b46f20e81d2902a8302d8b.tar.bz2
am 165fb8f5: am f89dac47: Merge "Tweak RT-animator scheduling" into lmp-mr1-dev
* commit '165fb8f5aa0709a8dc35f99a9b81f6906452a648': Tweak RT-animator scheduling
Diffstat (limited to 'libs/hwui/renderthread/TimeLord.h')
-rw-r--r--libs/hwui/renderthread/TimeLord.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/hwui/renderthread/TimeLord.h b/libs/hwui/renderthread/TimeLord.h
index 8b0372c..7c155d2 100644
--- a/libs/hwui/renderthread/TimeLord.h
+++ b/libs/hwui/renderthread/TimeLord.h
@@ -29,7 +29,8 @@ class RenderThread;
class TimeLord {
public:
void setFrameInterval(nsecs_t intervalNanos) { mFrameIntervalNanos = intervalNanos; }
- void vsyncReceived(nsecs_t vsync);
+ // returns true if the vsync is newer, false if it was rejected for staleness
+ bool vsyncReceived(nsecs_t vsync);
nsecs_t computeFrameTimeMs();
private: