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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp

Issue 1471353002: Paint red fill after checking CachedDisplayItemList (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on https://codereview.chromium.org/1469123005/ Created 5 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
index 49ac850229fd9d192345a3dd47b76d2dffbceb3e..5cf79cc4b3e8a823731a10f01098d1bae7ce2f38 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
@@ -313,15 +313,6 @@ void GraphicsLayer::paint(GraphicsContext& context, const IntRect* interestRect)
if (firstPaintInvalidationTrackingEnabled())
m_debugInfo.clearAnnotatedInvalidateRects();
incrementPaintCount();
-#ifndef NDEBUG
- if (contentsOpaque() && s_drawDebugRedFill) {
- FloatRect rect(FloatPoint(), size());
- if (!DrawingRecorder::useCachedDrawingIfPossible(context, *this, DisplayItem::DebugRedFill)) {
- DrawingRecorder recorder(context, *this, DisplayItem::DebugRedFill, rect);
- context.fillRect(rect, SK_ColorRED);
- }
- }
-#endif
IntRect newInterestRect;
if (RuntimeEnabledFeatures::slimmingPaintSynchronizedPaintingEnabled()) {
@@ -335,6 +326,16 @@ void GraphicsLayer::paint(GraphicsContext& context, const IntRect* interestRect)
}
}
+#ifndef NDEBUG
+ if (contentsOpaque() && s_drawDebugRedFill) {
+ FloatRect rect(FloatPoint(), size());
+ if (!DrawingRecorder::useCachedDrawingIfPossible(context, *this, DisplayItem::DebugRedFill)) {
+ DrawingRecorder recorder(context, *this, DisplayItem::DebugRedFill, rect);
+ context.fillRect(rect, SK_ColorRED);
+ }
+ }
+#endif
+
m_previousInterestRect = *interestRect;
m_client->paintContents(this, context, m_paintingPhase, *interestRect);
notifyFirstPaintToClient();
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698