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

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

Issue 2175553002: Raster PictureLayerTiling with fractional translation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: combined 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 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();

Powered by Google App Engine
This is Rietveld 408576698