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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.cpp

Issue 2632823002: SPv2: Paint SVG images and self-contained recorded pictures with their own trees. (Closed)
Patch Set: none Created 3 years, 11 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/platform/graphics/paint/SkPictureBuilder.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.cpp b/third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.cpp
index 1013a7c7c20f4ca268568aee2c05d0befc3689ea..86f6a95cb5e5d698d4db0aa02b892714d60ddf7b 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.cpp
@@ -25,6 +25,16 @@ SkPictureBuilder::SkPictureBuilder(const FloatRect& bounds,
} else {
m_paintControllerPtr = PaintController::create();
m_paintController = m_paintControllerPtr.get();
+
+ // Content painted with a new paint controller in SPv2 will have an
+ // independent property tree set.
+ if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
+ PaintChunk::Id id(*this, DisplayItem::kSVGImage);
+ PropertyTreeState state(
+ TransformPaintPropertyNode::root(), ClipPaintPropertyNode::root(),
+ EffectPaintPropertyNode::root(), ScrollPaintPropertyNode::root());
+ m_paintController->updateCurrentPaintChunkProperties(&id, state);
+ }
}
#if DCHECK_IS_ON()
m_paintController->setUsage(PaintController::ForSkPictureBuilder);

Powered by Google App Engine
This is Rietveld 408576698