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

Unified Diff: cc/scheduler_state_machine.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: 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_state_machine.h
diff --git a/cc/scheduler_state_machine.h b/cc/scheduler_state_machine.h
index 11868279a54020a238f84a5a76e8b386b417f84e..a68350659c64c329c237c5665f841ff7f5bd341e 100644
--- a/cc/scheduler_state_machine.h
+++ b/cc/scheduler_state_machine.h
@@ -12,6 +12,8 @@
namespace cc {
+class SchedulerSettings;
+
// The SchedulerStateMachine decides how to coordinate main thread activites
// like painting/running javascript with rendering and input activities on the
// impl thread.
@@ -24,7 +26,8 @@ namespace cc {
// make testing cleaner.
class CC_EXPORT SchedulerStateMachine {
public:
- SchedulerStateMachine();
+ // settings must be valid for the lifetime of this class.
+ SchedulerStateMachine(const SchedulerSettings* const settings);
enum CommitState {
COMMIT_STATE_IDLE,
@@ -149,6 +152,8 @@ protected:
bool hasDrawnThisFrame() const;
bool hasAttemptedTreeActivationThisFrame() const;
+ const SchedulerSettings* const m_settings;
+
CommitState m_commitState;
int m_currentFrameNumber;
« cc/scheduler.h ('K') | « cc/scheduler.cc ('k') | cc/scheduler_state_machine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698