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

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: Keep needsRedraw decision in the commit state 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 8120e294d4bbf01ede9b6c3cc53a85bffdab0c2d..c50b806ff0ec60f222534967e7ab4b4205463daa 100644
--- a/cc/scheduler_state_machine.h
+++ b/cc/scheduler_state_machine.h
@@ -24,7 +24,7 @@ namespace cc {
// make testing cleaner.
class CC_EXPORT SchedulerStateMachine {
public:
- SchedulerStateMachine();
+ SchedulerStateMachine(bool implSidePaintingEnabled);
enum CommitState {
COMMIT_STATE_IDLE,
@@ -148,6 +148,8 @@ protected:
bool hasDrawnThisFrame() const;
bool hasAttemptedTreeActivationThisFrame() const;
+ bool m_implSidePaintingEnabled;
+
CommitState m_commitState;
int m_currentFrameNumber;

Powered by Google App Engine
This is Rietveld 408576698