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

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

Issue 2565433003: Fix GeneratedImage::drawPattern() use of SkPictureBuilder. (Closed)
Patch Set: Remove old include. Add DCHECK to GC::beginRecording. Created 4 years 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/platform/graphics/GeneratedImage.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/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;
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/GeneratedImage.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698