diff options
author | ajuma@chromium.org <ajuma@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-16 03:06:58 +0000 |
---|---|---|
committer | ajuma@chromium.org <ajuma@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-16 03:06:58 +0000 |
commit | 273d30bfc3a572b0c5ddc8443079cbded30b3806 (patch) | |
tree | bc160cab0bc60154256658f8d770f3feb128c7bd /cc/scheduler/scheduler.h | |
parent | 89f6b175acec305c20711647766c8c2458bdac1c (diff) | |
download | chromium_src-273d30bfc3a572b0c5ddc8443079cbded30b3806.zip chromium_src-273d30bfc3a572b0c5ddc8443079cbded30b3806.tar.gz chromium_src-273d30bfc3a572b0c5ddc8443079cbded30b3806.tar.bz2 |
Estimate draw duration in SchedulerClient
This adds a DrawDurationEstimate method to SchedulerClient. The
implementation of this method (in ThreadProxy) produces an
estimate based on recent draw times.
This also adds UMA stats measuring the duration of each draw and
the amount by which this duration is underestimated or
overestimated.
BUG=243459
Review URL: https://chromiumcodereview.appspot.com/16574002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206624 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/scheduler/scheduler.h')
-rw-r--r-- | cc/scheduler/scheduler.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cc/scheduler/scheduler.h b/cc/scheduler/scheduler.h index d8151fa..88d2735 100644 --- a/cc/scheduler/scheduler.h +++ b/cc/scheduler/scheduler.h @@ -44,6 +44,7 @@ class SchedulerClient { virtual void ScheduledActionBeginOutputSurfaceCreation() = 0; virtual void ScheduledActionAcquireLayerTexturesForMainThread() = 0; virtual void DidAnticipatedDrawTimeChange(base::TimeTicks time) = 0; + virtual base::TimeDelta DrawDurationEstimate() = 0; protected: virtual ~SchedulerClient() {} |