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

Unified Diff: cc/scheduler.cc

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: delete unnecessary forward declaration, add comments 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
Index: cc/scheduler.cc
diff --git a/cc/scheduler.cc b/cc/scheduler.cc
index 644241482b968996438bc82c3a862946087a06bb..f25a883220bc944b7e03af87c8908dcfd2e7d185 100644
--- a/cc/scheduler.cc
+++ b/cc/scheduler.cc
@@ -10,9 +10,18 @@
namespace cc {
-Scheduler::Scheduler(SchedulerClient* client, scoped_ptr<FrameRateController> frameRateController)
- : m_client(client)
+SchedulerSettings::SchedulerSettings()
+ : implSidePainting(false)
+{
+}
+
+Scheduler::Scheduler(SchedulerClient* client,
+ scoped_ptr<FrameRateController> frameRateController,
+ const SchedulerSettings& schedulerSettings)
+ : m_settings(schedulerSettings)
+ , m_client(client)
, m_frameRateController(frameRateController.Pass())
+ , m_stateMachine(&m_settings)
, m_insideProcessScheduledActions(false)
{
DCHECK(m_client);
« cc/scheduler.h ('K') | « cc/scheduler.h ('k') | cc/scheduler_state_machine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698