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

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

Issue 10202004: Merge 114599 - [chromium] Add canBeginFrame state to CCSchedulerStateMachine to suppress initializa… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
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.cpp
===================================================================
--- Source/WebCore/platform/graphics/chromium/cc/CCSchedulerStateMachine.cpp (revision 114975)
+++ Source/WebCore/platform/graphics/chromium/cc/CCSchedulerStateMachine.cpp (working copy)
@@ -39,6 +39,7 @@
, m_updateMoreResourcesPending(false)
, m_insideVSync(false)
, m_visible(false)
+ , m_canBeginFrame(false)
, m_canDraw(true)
, m_drawIfPossibleFailed(false)
, m_contextState(CONTEXT_ACTIVE)
@@ -84,7 +85,7 @@
return ACTION_NONE;
if (shouldDraw())
return m_needsForcedRedraw ? ACTION_DRAW_FORCED : ACTION_DRAW_IF_POSSIBLE;
- if (m_needsCommit && (m_visible || m_needsForcedCommit))
+ if (m_needsCommit && ((m_visible && m_canBeginFrame) || m_needsForcedCommit))
return ACTION_BEGIN_FRAME;
return ACTION_NONE;

Powered by Google App Engine
This is Rietveld 408576698