diff options
author | brianderson@chromium.org <brianderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-17 00:03:48 +0000 |
---|---|---|
committer | brianderson@chromium.org <brianderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-17 00:03:48 +0000 |
commit | faa765cfb116065c46ccb026465326231441252d (patch) | |
tree | 8f3edd63fa853d0d261171c0ef0ce813c643b31e /cc/scheduler.h | |
parent | ec7540f6e23eeddfc6a4f32db39ce2be08bca175 (diff) | |
download | chromium_src-faa765cfb116065c46ccb026465326231441252d.zip chromium_src-faa765cfb116065c46ccb026465326231441252d.tar.gz chromium_src-faa765cfb116065c46ccb026465326231441252d.tar.bz2 |
cc: Do not request redraw on commit when impl-side painting
When impl-side painting, we draw when the pending tree
becomes active and should no longer draw on commit.
BUG=168724
Review URL: https://chromiumcodereview.appspot.com/11830040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177274 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/scheduler.h')
-rw-r--r-- | cc/scheduler.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/cc/scheduler.h b/cc/scheduler.h index 02ff3ae..6d2bad9 100644 --- a/cc/scheduler.h +++ b/cc/scheduler.h @@ -11,6 +11,7 @@ #include "cc/cc_export.h" #include "cc/frame_rate_controller.h" #include "cc/layer_tree_host.h" +#include "cc/scheduler_settings.h" #include "cc/scheduler_state_machine.h" namespace cc { @@ -49,9 +50,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(); @@ -97,10 +100,12 @@ public: virtual void vsyncTick(bool throttled) OVERRIDE; private: - Scheduler(SchedulerClient*, scoped_ptr<FrameRateController>); + Scheduler(SchedulerClient*, scoped_ptr<FrameRateController>, + const SchedulerSettings& schedulerSettings); void processScheduledActions(); + const SchedulerSettings m_settings; SchedulerClient* m_client; scoped_ptr<FrameRateController> m_frameRateController; SchedulerStateMachine m_stateMachine; |