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

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

Issue 246893017: Disable layer squashing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | « no previous file | Source/platform/RuntimeEnabledFeatures.in » ('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 591563c08963b10ac8abd8b731e34eb128b19b07..4dbbfb9dc5970d0c26d1bc2685ac677c0c5cef44 100644
--- a/Source/core/rendering/compositing/RenderLayerCompositor.cpp
+++ b/Source/core/rendering/compositing/RenderLayerCompositor.cpp
@@ -206,6 +206,8 @@ void RenderLayerCompositor::updateAcceleratedCompositingSettings()
bool RenderLayerCompositor::layerSquashingEnabled() const
{
+ if (!RuntimeEnabledFeatures::layerSquashingEnabled())
+ return false;
if (Settings* settings = m_renderView.document().settings())
return settings->layerSquashingEnabled();
return true;
« no previous file with comments | « no previous file | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698