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

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

Issue 2184053003: Always fallback to checking bitmaps during under-invalidation checking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: - Created 4 years, 5 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/DrawingRecorder.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/DrawingRecorder.h b/third_party/WebKit/Source/platform/graphics/paint/DrawingRecorder.h
index 29f71848b263eaf655ea241835b0080e06dd6283..fa00da3f8bd8935d8bbff00f4b9f7239e8de0f8c 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/DrawingRecorder.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/DrawingRecorder.h
@@ -34,11 +34,7 @@ public:
DrawingRecorder(GraphicsContext&, const DisplayItemClient&, DisplayItem::Type, const FloatRect& cullRect);
~DrawingRecorder();
- void setKnownToBeOpaque() { ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled()); m_knownToBeOpaque = true; }
-
-#if ENABLE(ASSERT)
- void setUnderInvalidationCheckingMode(DrawingDisplayItem::UnderInvalidationCheckingMode mode) { m_underInvalidationCheckingMode = mode; }
-#endif
+ void setKnownToBeOpaque() { DCHECK(RuntimeEnabledFeatures::slimmingPaintV2Enabled()); m_knownToBeOpaque = true; }
private:
GraphicsContext& m_context;
@@ -48,9 +44,8 @@ private:
// True if there are no transparent areas. Only used for SlimmingPaintV2.
bool m_knownToBeOpaque;
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
size_t m_displayItemPosition;
- DrawingDisplayItem::UnderInvalidationCheckingMode m_underInvalidationCheckingMode;
#endif
};

Powered by Google App Engine
This is Rietveld 408576698