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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PaintRecordBuilder.h

Issue 2751433002: [SPv2] Flatten property trees in PaintRecordBuilder into a single display list. (Closed)
Patch Set: none 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/platform/graphics/paint/PaintRecordBuilder.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintRecordBuilder.h b/third_party/WebKit/Source/platform/graphics/paint/PaintRecordBuilder.h
index e38b0f6e47c4c6d7ae56d2c81a04feb10e6a6a81..6c3e231570a29e088f7de172915e7f0bf7a3bc17 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintRecordBuilder.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintRecordBuilder.h
@@ -37,6 +37,8 @@ class PLATFORM_EXPORT PaintRecordBuilder final : public DisplayItemClient {
// painting the picture (and hence we can use its cache). Otherwise, a new
// PaintController is used for the duration of the picture building, which
// therefore has no caching.
+ // If SPv2 is on, resets paint chunks to PropertyTreeState::root()
+ // before beginning to record.
PaintRecordBuilder(const FloatRect& bounds,
SkMetaData* = nullptr,
GraphicsContext* containingContext = nullptr,
@@ -45,8 +47,9 @@ class PLATFORM_EXPORT PaintRecordBuilder final : public DisplayItemClient {
GraphicsContext& context() { return *m_context; }
- // Returns a picture capturing all drawing performed on the builder's context
- // since construction.
+ // Returns a PaintRecord capturing all drawing performed on the builder's
+ // context since construction. If SPv2 is on, flattens all paint chunks
+ // into PropertyTreeState::root() space.
sk_sp<PaintRecord> endRecording();
// DisplayItemClient methods

Powered by Google App Engine
This is Rietveld 408576698