Index: third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp |
index cb5f3ad5020d4a547ea1cd836f428f1c97085d80..5c4fa13e6de6d5393ea384f507b466373eca5762 100644 |
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp |
@@ -264,6 +264,7 @@ void GraphicsContext::beginRecording(const FloatRect& bounds) { |
if (contextDisabled()) |
return; |
+ DCHECK(!m_canvas); |
m_canvas = m_pictureRecorder.beginRecording(bounds, nullptr); |
if (m_hasMetaData) |
skia::GetMetaData(*m_canvas) = m_metaData; |