| 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
|
|
|