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

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

Issue 2549553002: Verify paintedOutputOfObjectHasNoEffectRegardlessOfSize during painting (Closed)
Patch Set: Remove from LayoutObject.h 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/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

Powered by Google App Engine
This is Rietveld 408576698