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

Unified Diff: Source/core/rendering/compositing/RenderLayerCompositor.cpp

Issue 235933002: Defer updateCompositingRequirementsState until the compositing update (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add DeprecatedDirtyCompositingDuringCompositingUpdate Created 6 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
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/compositing/RenderLayerCompositor.cpp
diff --git a/Source/core/rendering/compositing/RenderLayerCompositor.cpp b/Source/core/rendering/compositing/RenderLayerCompositor.cpp
index 8623783bd1617f73d48b48b935415734c0a1a273..0268a56d17fc3ce0922f53337b55aa8b6535ddf2 100644
--- a/Source/core/rendering/compositing/RenderLayerCompositor.cpp
+++ b/Source/core/rendering/compositing/RenderLayerCompositor.cpp
@@ -358,6 +358,14 @@ void RenderLayerCompositor::updateIfNeeded()
if (m_forceCompositingMode && !m_compositing)
enableCompositingMode(true);
+ {
+ // Notice that we call this function before checking the dirty bits below.
+ // We'll need to remove DeprecatedDirtyCompositingDuringCompositingUpdate
+ // before moving this function after checking the dirty bits.
+ DeprecatedDirtyCompositingDuringCompositingUpdate marker(lifecycle());
+ updateCompositingRequirementsState();
+ }
+
if (!m_needsToRecomputeCompositingRequirements && !m_compositing)
return;
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698