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

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

Issue 1632263002: Calculate and track display item opaqueness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove comment about moving bits Created 4 years, 11 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 c8e45e6ee2c214dd5dd8322136e17c163cc8ddfe..58163121486c1cb5e00023126b97f17b71602800 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/DrawingRecorder.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/DrawingRecorder.h
@@ -29,6 +29,8 @@ 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
@@ -37,6 +39,10 @@ private:
GraphicsContext& m_context;
const DisplayItemClient& m_displayItemClient;
const DisplayItem::Type m_displayItemType;
+
+ // True if there are no transparent areas. Only used for SlimmingPaintV2.
+ bool m_knownToBeOpaque;
+
#if ENABLE(ASSERT)
size_t m_displayItemPosition;
DrawingDisplayItem::UnderInvalidationCheckingMode m_underInvalidationCheckingMode;

Powered by Google App Engine
This is Rietveld 408576698