Chromium Code Reviews| Index: cc/scheduler.h |
| diff --git a/cc/scheduler.h b/cc/scheduler.h |
| index eee40efd94924d02850f94c26e7c401e8ec77077..d41831e686409ccc89975c0baccffd6e87d07021 100644 |
| --- a/cc/scheduler.h |
| +++ b/cc/scheduler.h |
| @@ -17,6 +17,15 @@ namespace cc { |
| class Thread; |
| +class SchedulerSettings |
| +{ |
| +public: |
| + SchedulerSettings(); |
| + virtual ~SchedulerSettings() { } |
|
nduca
2013/01/16 02:16:02
its POD so you dont need ~
|
| + |
| + bool implSidePainting; |
| +}; |
| + |
| struct ScheduledActionDrawAndSwapResult { |
| ScheduledActionDrawAndSwapResult() |
| : didDraw(false) |
| @@ -49,9 +58,11 @@ protected: |
| class CC_EXPORT Scheduler : FrameRateControllerClient { |
| public: |
| - static scoped_ptr<Scheduler> create(SchedulerClient* client, scoped_ptr<FrameRateController> frameRateController) |
| + static scoped_ptr<Scheduler> create(SchedulerClient* client, |
| + scoped_ptr<FrameRateController> frameRateController, |
| + const SchedulerSettings &schedulerSettings) |
| { |
| - return make_scoped_ptr(new Scheduler(client, frameRateController.Pass())); |
| + return make_scoped_ptr(new Scheduler(client, frameRateController.Pass(), schedulerSettings)); |
| } |
| virtual ~Scheduler(); |
| @@ -95,10 +106,12 @@ public: |
| virtual void vsyncTick(bool throttled) OVERRIDE; |
| private: |
| - Scheduler(SchedulerClient*, scoped_ptr<FrameRateController>); |
| + Scheduler(SchedulerClient*, scoped_ptr<FrameRateController>, |
| + const SchedulerSettings &schedulerSettings); |
|
nduca
2013/01/16 02:16:02
style looks funky
const Foo& foo
|
| void processScheduledActions(); |
| + const SchedulerSettings m_settings; |
| SchedulerClient* m_client; |
| scoped_ptr<FrameRateController> m_frameRateController; |
| SchedulerStateMachine m_stateMachine; |