| 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();
|
|
|