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

Unified Diff: cc/scheduler.h

Issue 11830040: cc: Do not request redraw on commit when impl-side painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@decouple_draw3
Patch Set: Use CC_EXPORT Created 7 years, 11 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
« no previous file with comments | « cc/layer_tree_host_unittest_scroll.cc ('k') | cc/scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler.h
diff --git a/cc/scheduler.h b/cc/scheduler.h
index 02ff3ae6a94ca0060f8f970794eca46a57769839..6d2bad92f77c1e683b0b37e34085232a74a9aad5 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;
« no previous file with comments | « cc/layer_tree_host_unittest_scroll.cc ('k') | cc/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698