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 337072a9af70958f6598cbc6892993d40a7c69d3..a9d98d6c4e33a57f276cb1c0a0153326061ebce8 100644 |
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
@@ -504,6 +504,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); |
@@ -1118,6 +1128,7 @@ void CompositedLayerMapping::updateGraphicsLayerGeometry( |
updateElementIdAndCompositorMutableProperties(); |
updateBackgroundPaintsOntoScrollingContentsLayer(); |
updateContentsOpaque(); |
+ updateRasterizationPolicy(); |
updateAfterPartResize(); |
updateRenderingContext(); |
updateShouldFlattenTransform(); |