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

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

Issue 1469123005: Always use own PaintController in GraphicsLayer::paint() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp ('k') | no next file » | 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 e3dcf99a3a100c0e08b393a95be98d222ffef892..49ac850229fd9d192345a3dd47b76d2dffbceb3e 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
@@ -306,6 +306,7 @@ void GraphicsLayer::paint(GraphicsContext& context, const IntRect* interestRect)
{
ASSERT(interestRect || RuntimeEnabledFeatures::slimmingPaintSynchronizedPaintingEnabled());
ASSERT(drawsContent());
+ ASSERT(&context.paintController() == m_paintController);
if (!m_client)
return;
@@ -313,7 +314,7 @@ void GraphicsLayer::paint(GraphicsContext& context, const IntRect* interestRect)
m_debugInfo.clearAnnotatedInvalidateRects();
incrementPaintCount();
#ifndef NDEBUG
- if (m_paintController && contentsOpaque() && s_drawDebugRedFill) {
+ if (contentsOpaque() && s_drawDebugRedFill) {
FloatRect rect(FloatPoint(), size());
if (!DrawingRecorder::useCachedDrawingIfPossible(context, *this, DisplayItem::DebugRedFill)) {
DrawingRecorder recorder(context, *this, DisplayItem::DebugRedFill, rect);
« no previous file with comments | « third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698