summaryrefslogtreecommitdiffstats
path: root/libs/hwui/renderthread/TimeLord.h
diff options
context:
space:
mode:
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: