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

Side by Side Diff: cc/scheduler.h

Issue 12804006: cc: Save correct frame begin time to FrameRateCounter (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_SCHEDULER_H_ 5 #ifndef CC_SCHEDULER_H_
6 #define CC_SCHEDULER_H_ 6 #define CC_SCHEDULER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 void didLoseOutputSurface(); 92 void didLoseOutputSurface();
93 void didRecreateOutputSurface(); 93 void didRecreateOutputSurface();
94 94
95 bool commitPending() const { return m_stateMachine.commitPending(); } 95 bool commitPending() const { return m_stateMachine.commitPending(); }
96 bool redrawPending() const { return m_stateMachine.redrawPending(); } 96 bool redrawPending() const { return m_stateMachine.redrawPending(); }
97 97
98 void setTimebaseAndInterval(base::TimeTicks timebase, base::TimeDelta interv al); 98 void setTimebaseAndInterval(base::TimeTicks timebase, base::TimeDelta interv al);
99 99
100 base::TimeTicks anticipatedDrawTime(); 100 base::TimeTicks anticipatedDrawTime();
101 base::TimeTicks lastDrawTime();
101 102
102 // FrameRateControllerClient implementation 103 // FrameRateControllerClient implementation
103 virtual void vsyncTick(bool throttled) OVERRIDE; 104 virtual void vsyncTick(bool throttled) OVERRIDE;
104 105
105 private: 106 private:
106 Scheduler(SchedulerClient*, scoped_ptr<FrameRateController>, 107 Scheduler(SchedulerClient*, scoped_ptr<FrameRateController>,
107 const SchedulerSettings& schedulerSettings); 108 const SchedulerSettings& schedulerSettings);
108 109
109 void processScheduledActions(); 110 void processScheduledActions();
110 111
111 const SchedulerSettings m_settings; 112 const SchedulerSettings m_settings;
112 SchedulerClient* m_client; 113 SchedulerClient* m_client;
113 scoped_ptr<FrameRateController> m_frameRateController; 114 scoped_ptr<FrameRateController> m_frameRateController;
114 SchedulerStateMachine m_stateMachine; 115 SchedulerStateMachine m_stateMachine;
115 bool m_insideProcessScheduledActions; 116 bool m_insideProcessScheduledActions;
116 117
117 DISALLOW_COPY_AND_ASSIGN(Scheduler); 118 DISALLOW_COPY_AND_ASSIGN(Scheduler);
118 }; 119 };
119 120
120 } // namespace cc 121 } // namespace cc
121 122
122 #endif // CC_SCHEDULER_H_ 123 #endif // CC_SCHEDULER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698