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

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: fix cc_unittests 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..eda537fde068a84d5893fbe758714f6d1084abdf 100644
--- a/cc/scheduler_state_machine.h
+++ b/cc/scheduler_state_machine.h
@@ -12,6 +12,8 @@
namespace cc {
+class LayerTreeSettings;
+
// 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,7 @@ namespace cc {
// make testing cleaner.
class CC_EXPORT SchedulerStateMachine {
public:
- SchedulerStateMachine();
+ SchedulerStateMachine(const LayerTreeSettings& layerTreeSettings);
enum CommitState {
COMMIT_STATE_IDLE,
@@ -149,6 +151,8 @@ protected:
bool hasDrawnThisFrame() const;
bool hasAttemptedTreeActivationThisFrame() const;
+ const LayerTreeSettings& m_layerTreeSettings;
+
CommitState m_commitState;
int m_currentFrameNumber;

Powered by Google App Engine
This is Rietveld 408576698