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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp

Issue 2565073002: Implement the algorithm to test merging and overlap in PaintArtifactCompositor. (Closed)
Patch Set: none Created 4 years 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/paint/PaintLayerPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp b/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
index 18d5d0ad0ed5dbf9f8bf0312067f0a7ce6c9e8ec..a330cb592343bff56ecce39f56e7bec12c25a278 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
@@ -276,6 +276,9 @@ PaintResult PaintLayerPainter::paintLayerContents(
properties.effect = localBorderBoxProperties.propertyTreeState.effect();
properties.backfaceHidden =
m_paintLayer.layoutObject()->hasHiddenBackface();
+ properties.willChangeTransform =
+ m_paintLayer.layoutObject()->styleRef().hasWillChangeCompositingHint();
+
scopedPaintChunkProperties.emplace(context.getPaintController(),
m_paintLayer, properties);
}
@@ -488,6 +491,10 @@ PaintResult PaintLayerPainter::paintLayerContents(
properties.effect = localBorderBoxProperties.propertyTreeState.effect();
properties.backfaceHidden =
m_paintLayer.layoutObject()->hasHiddenBackface();
+ properties.willChangeTransform = m_paintLayer.layoutObject()
trchen 2016/12/13 22:46:01 I think this is not quite right. For example: <di
+ ->styleRef()
+ .hasWillChangeCompositingHint();
+
contentScopedPaintChunkProperties.emplace(context.getPaintController(),
m_paintLayer, properties);
}

Powered by Google App Engine
This is Rietveld 408576698