Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: Source/WebCore/platform/graphics/chromium/cc/CCSchedulerStateMachine.h

Issue 10202004: Merge 114599 - [chromium] Add canBeginFrame state to CCSchedulerStateMachine to suppress initializa… (Closed) Base URL:
Patch Set: Created 8 years, 8 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: Source/WebCore/platform/graphics/chromium/cc/CCSchedulerStateMachine.h
--- Source/WebCore/platform/graphics/chromium/cc/CCSchedulerStateMachine.h (revision 114975)
+++ Source/WebCore/platform/graphics/chromium/cc/CCSchedulerStateMachine.h (working copy)
@@ -117,6 +117,9 @@
// from nextState. Indicates that the specific update request completed.
void beginUpdateMoreResourcesComplete(bool morePending);
+ // Indicates whether we can successfully begin a frame at this time.
+ void setCanBeginFrame(bool can) { m_canBeginFrame = can; }
// Indicates whether drawing would, at this time, make sense.
// canDraw can be used to supress flashes or checkerboarding
// when such behavior would be undesirable.
@@ -141,6 +144,7 @@
bool m_updateMoreResourcesPending;
bool m_insideVSync;
bool m_visible;
+ bool m_canBeginFrame;
bool m_canDraw;
bool m_drawIfPossibleFailed;
ContextState m_contextState;

Powered by Google App Engine
This is Rietveld 408576698