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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp

Issue 2559413002: [1/5] Pass transformed rasterization policy from Blink (Closed)
Patch Set: rebase Created 3 years, 9 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: 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();

Powered by Google App Engine
This is Rietveld 408576698