Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3750)

Unified Diff: cc/scheduler/scheduler.h

Issue 26880010: gfx: Add FrameTime and DisplayTime classes (Closed) Base URL: http://git.chromium.org/chromium/src.git@checkHighResNow4
Patch Set: WIP Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/scheduler/frame_rate_controller.cc ('k') | cc/scheduler/scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/scheduler.h
diff --git a/cc/scheduler/scheduler.h b/cc/scheduler/scheduler.h
index 1a284f187d5c1ac2193fcf7e9baf1c24d0c6ae73..f04a8883f0e7e90ba1a81dbca8144ac15783635e 100644
--- a/cc/scheduler/scheduler.h
+++ b/cc/scheduler/scheduler.h
@@ -44,12 +44,13 @@ class SchedulerClient {
virtual void ScheduledActionBeginOutputSurfaceCreation() = 0;
virtual void ScheduledActionAcquireLayerTexturesForMainThread() = 0;
virtual void ScheduledActionManageTiles() = 0;
- virtual void DidAnticipatedDrawTimeChange(base::TimeTicks time) = 0;
+ virtual void DidAnticipatedDrawTimeChange(gfx::FrameTime time) = 0;
virtual base::TimeDelta DrawDurationEstimate() = 0;
virtual base::TimeDelta BeginMainFrameToCommitDurationEstimate() = 0;
virtual base::TimeDelta CommitToActivateDurationEstimate() = 0;
- virtual void PostBeginImplFrameDeadline(const base::Closure& closure,
- base::TimeTicks deadline) = 0;
+ virtual void PostBeginImplFrameDeadline(
+ const base::Closure& closure,
+ gfx::FrameTime deadline) = 0;
virtual void DidBeginImplFrameDeadline() = 0;
protected:
@@ -105,9 +106,9 @@ class CC_EXPORT Scheduler {
bool WillDrawIfNeeded() const;
- base::TimeTicks AnticipatedDrawTime();
+ gfx::FrameTime AnticipatedDrawTime();
- base::TimeTicks LastBeginImplFrameTime();
+ gfx::FrameTime LastBeginImplFrameTime();
void BeginImplFrame(const BeginFrameArgs& args);
void OnBeginImplFrameDeadline();
@@ -125,7 +126,7 @@ class CC_EXPORT Scheduler {
Scheduler(SchedulerClient* client,
const SchedulerSettings& scheduler_settings);
- void PostBeginImplFrameDeadline(base::TimeTicks deadline);
+ void PostBeginImplFrameDeadline(gfx::FrameTime deadline);
void SetupNextBeginImplFrameIfNeeded();
void ActivatePendingTree();
void DrawAndSwapIfPossible();
« no previous file with comments | « cc/scheduler/frame_rate_controller.cc ('k') | cc/scheduler/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698