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

Side by Side Diff: cc/CCScheduler.h

Issue 10985088: cc: Switch it to use DISALLOW_COPY_AND_ASSIGN macro from base/ library. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/CCResourceProvider.h ('k') | cc/CCSchedulerStateMachine.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CCScheduler_h 5 #ifndef CCScheduler_h
6 #define CCScheduler_h 6 #define CCScheduler_h
7 7
8 #include "base/basictypes.h"
9 #include "base/time.h"
8 #include "CCFrameRateController.h" 10 #include "CCFrameRateController.h"
9 #include "CCSchedulerStateMachine.h" 11 #include "CCSchedulerStateMachine.h"
10 #include "base/time.h"
11 #include <wtf/Noncopyable.h>
12 #include <wtf/PassOwnPtr.h> 12 #include <wtf/PassOwnPtr.h>
13 13
14 namespace cc { 14 namespace cc {
15 15
16 class CCThread; 16 class CCThread;
17 17
18 struct CCScheduledActionDrawAndSwapResult { 18 struct CCScheduledActionDrawAndSwapResult {
19 CCScheduledActionDrawAndSwapResult() 19 CCScheduledActionDrawAndSwapResult()
20 : didDraw(false) 20 : didDraw(false)
21 , didSwap(false) 21 , didSwap(false)
(...skipping 16 matching lines...) Expand all
38 virtual void scheduledActionCommit() = 0; 38 virtual void scheduledActionCommit() = 0;
39 virtual void scheduledActionBeginContextRecreation() = 0; 39 virtual void scheduledActionBeginContextRecreation() = 0;
40 virtual void scheduledActionAcquireLayerTexturesForMainThread() = 0; 40 virtual void scheduledActionAcquireLayerTexturesForMainThread() = 0;
41 virtual void didAnticipatedDrawTimeChange(base::TimeTicks) = 0; 41 virtual void didAnticipatedDrawTimeChange(base::TimeTicks) = 0;
42 42
43 protected: 43 protected:
44 virtual ~CCSchedulerClient() { } 44 virtual ~CCSchedulerClient() { }
45 }; 45 };
46 46
47 class CCScheduler : CCFrameRateControllerClient { 47 class CCScheduler : CCFrameRateControllerClient {
48 WTF_MAKE_NONCOPYABLE(CCScheduler);
49 public: 48 public:
50 static PassOwnPtr<CCScheduler> create(CCSchedulerClient* client, PassOwnPtr< CCFrameRateController> frameRateController) 49 static PassOwnPtr<CCScheduler> create(CCSchedulerClient* client, PassOwnPtr< CCFrameRateController> frameRateController)
51 { 50 {
52 return adoptPtr(new CCScheduler(client, frameRateController)); 51 return adoptPtr(new CCScheduler(client, frameRateController));
53 } 52 }
54 53
55 virtual ~CCScheduler(); 54 virtual ~CCScheduler();
56 55
57 void setCanBeginFrame(bool); 56 void setCanBeginFrame(bool);
58 57
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 92
94 private: 93 private:
95 CCScheduler(CCSchedulerClient*, PassOwnPtr<CCFrameRateController>); 94 CCScheduler(CCSchedulerClient*, PassOwnPtr<CCFrameRateController>);
96 95
97 void processScheduledActions(); 96 void processScheduledActions();
98 97
99 CCSchedulerClient* m_client; 98 CCSchedulerClient* m_client;
100 OwnPtr<CCFrameRateController> m_frameRateController; 99 OwnPtr<CCFrameRateController> m_frameRateController;
101 CCSchedulerStateMachine m_stateMachine; 100 CCSchedulerStateMachine m_stateMachine;
102 bool m_insideProcessScheduledActions; 101 bool m_insideProcessScheduledActions;
102
103 DISALLOW_COPY_AND_ASSIGN(CCScheduler);
103 }; 104 };
104 105
105 } 106 }
106 107
107 #endif // CCScheduler_h 108 #endif // CCScheduler_h
OLDNEW
« no previous file with comments | « cc/CCResourceProvider.h ('k') | cc/CCSchedulerStateMachine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698