| Index: third_party/WebKit/Source/platform/graphics/paint/PaintController.h
|
| diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintController.h b/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
|
| index 8aaebc3ed5f38df9e07115a0e92dd14f9956d3b3..cde4c2d9c453e2ce977c55693b3d84477355a4aa 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
|
| +++ b/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
|
| @@ -187,6 +187,10 @@ class PLATFORM_EXPORT PaintController {
|
|
|
| #if DCHECK_IS_ON()
|
| void assertDisplayItemClientsAreLive();
|
| +
|
| + enum Usage { ForNormalUsage, ForSkPictureBuilder };
|
| + void setUsage(Usage usage) { m_usage = usage; }
|
| + bool isForSkPictureBuilder() const { return m_usage == ForSkPictureBuilder; }
|
| #endif
|
|
|
| void setTracksRasterInvalidations(bool value);
|
| @@ -351,6 +355,8 @@ class PLATFORM_EXPORT PaintController {
|
| #if DCHECK_IS_ON()
|
| // This is used to check duplicated ids during createAndAppend().
|
| IndicesByClientMap m_newDisplayItemIndicesByClient;
|
| +
|
| + Usage m_usage;
|
| #endif
|
|
|
| // These are set in useCachedDrawingIfPossible() and
|
|
|