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

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

Issue 367163003: Disallow squashing for layers with reflections (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use blue.png instead of ducky.png Created 6 years, 6 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/core/rendering/compositing/CompositingLayerAssigner.cpp
diff --git a/Source/core/rendering/compositing/CompositingLayerAssigner.cpp b/Source/core/rendering/compositing/CompositingLayerAssigner.cpp
index 1c4089d6d3ed22f3c8542cf4396ec81f80fa34eb..6f47fe36b881ed44701c6ac532dfbcb2cf160265 100644
--- a/Source/core/rendering/compositing/CompositingLayerAssigner.cpp
+++ b/Source/core/rendering/compositing/CompositingLayerAssigner.cpp
@@ -134,7 +134,10 @@ CompositingReasons CompositingLayerAssigner::getReasonsPreventingSquashing(const
// Don't squash iframes, frames or plugins.
// FIXME: this is only necessary because there is frame code that assumes that composited frames are not squashed.
if (layer->renderer()->isRenderPart())
- return CompositedReasonSquashingRenderPart;
+ return CompositingReasonSquashingRenderPartIsDisallowed;
+
+ if (layer->reflectionInfo())
+ return CompositingReasonSquashingReflectionIsDisallowed;
if (squashingWouldExceedSparsityTolerance(layer, squashingState))
return CompositingReasonSquashingSparsityExceeded;

Powered by Google App Engine
This is Rietveld 408576698