Index: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
index a7fed4bbf4e357459361c4d6df8360732c1993b5..80b3d32b2eae3aa8e18f594a711bc1aafb68ed7c 100644 |
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
@@ -505,6 +505,16 @@ void CompositedLayerMapping::updateContentsOpaque() { |
} |
} |
+void CompositedLayerMapping::updateRasterizationPolicy() { |
+ bool allowTransformedRasterization = |
+ !requiresCompositing(m_owningLayer.getCompositingReasons() & |
+ ~CompositingReasonSquashingDisallowed); |
+ m_graphicsLayer->contentLayer()->setAllowTransformedRasterization( |
+ allowTransformedRasterization); |
+ if (m_squashingLayer) |
+ m_squashingLayer->contentLayer()->setAllowTransformedRasterization(true); |
+} |
+ |
void CompositedLayerMapping::updateCompositedBounds() { |
DCHECK_EQ(m_owningLayer.compositor()->lifecycle().state(), |
DocumentLifecycle::InCompositingUpdate); |
@@ -1119,6 +1129,7 @@ void CompositedLayerMapping::updateGraphicsLayerGeometry( |
updateElementIdAndCompositorMutableProperties(); |
updateBackgroundPaintsOntoScrollingContentsLayer(); |
updateContentsOpaque(); |
+ updateRasterizationPolicy(); |
updateAfterPartResize(); |
updateRenderingContext(); |
updateShouldFlattenTransform(); |