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

Unified Diff: cc/scheduler.h

Issue 11189043: cc: Rename cc classes and members to match filenames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
Index: cc/scheduler.h
diff --git a/cc/scheduler.h b/cc/scheduler.h
index dd62b457a8e168a142a8b6448859ce44fccae035..15d3a6fe5bc948ba47fce07617ecd9a3264560df 100644
--- a/cc/scheduler.h
+++ b/cc/scheduler.h
@@ -13,15 +13,15 @@
namespace cc {
-class CCThread;
+class Thread;
-struct CCScheduledActionDrawAndSwapResult {
- CCScheduledActionDrawAndSwapResult()
+struct ScheduledActionDrawAndSwapResult {
+ ScheduledActionDrawAndSwapResult()
: didDraw(false)
, didSwap(false)
{
}
- CCScheduledActionDrawAndSwapResult(bool didDraw, bool didSwap)
+ ScheduledActionDrawAndSwapResult(bool didDraw, bool didSwap)
: didDraw(didDraw)
, didSwap(didSwap)
{
@@ -30,28 +30,28 @@ struct CCScheduledActionDrawAndSwapResult {
bool didSwap;
};
-class CCSchedulerClient {
+class SchedulerClient {
public:
virtual void scheduledActionBeginFrame() = 0;
- virtual CCScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapIfPossible() = 0;
- virtual CCScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapForced() = 0;
+ virtual ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapIfPossible() = 0;
+ virtual ScheduledActionDrawAndSwapResult scheduledActionDrawAndSwapForced() = 0;
virtual void scheduledActionCommit() = 0;
virtual void scheduledActionBeginContextRecreation() = 0;
virtual void scheduledActionAcquireLayerTexturesForMainThread() = 0;
virtual void didAnticipatedDrawTimeChange(base::TimeTicks) = 0;
protected:
- virtual ~CCSchedulerClient() { }
+ virtual ~SchedulerClient() { }
};
-class CCScheduler : CCFrameRateControllerClient {
+class Scheduler : FrameRateControllerClient {
public:
- static scoped_ptr<CCScheduler> create(CCSchedulerClient* client, scoped_ptr<CCFrameRateController> frameRateController)
+ static scoped_ptr<Scheduler> create(SchedulerClient* client, scoped_ptr<FrameRateController> frameRateController)
{
- return make_scoped_ptr(new CCScheduler(client, frameRateController.Pass()));
+ return make_scoped_ptr(new Scheduler(client, frameRateController.Pass()));
}
- virtual ~CCScheduler();
+ virtual ~Scheduler();
void setCanBeginFrame(bool);
@@ -87,20 +87,20 @@ public:
base::TimeTicks anticipatedDrawTime();
- // CCFrameRateControllerClient implementation
+ // FrameRateControllerClient implementation
virtual void vsyncTick(bool throttled) OVERRIDE;
private:
- CCScheduler(CCSchedulerClient*, scoped_ptr<CCFrameRateController>);
+ Scheduler(SchedulerClient*, scoped_ptr<FrameRateController>);
void processScheduledActions();
- CCSchedulerClient* m_client;
- scoped_ptr<CCFrameRateController> m_frameRateController;
- CCSchedulerStateMachine m_stateMachine;
+ SchedulerClient* m_client;
+ scoped_ptr<FrameRateController> m_frameRateController;
+ SchedulerStateMachine m_stateMachine;
bool m_insideProcessScheduledActions;
- DISALLOW_COPY_AND_ASSIGN(CCScheduler);
+ DISALLOW_COPY_AND_ASSIGN(Scheduler);
};
} // namespace cc
« cc/active_animation.h ('K') | « cc/resource_provider_unittest.cc ('k') | cc/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698