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

Unified Diff: Source/web/WebGraphicsContextImpl.cpp

Issue 1220583004: Refactor DrawingRecorders to check for cached drawings earlier (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix some !'s and &&'s. De Morgan would be proud. Created 5 years, 6 months 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
Index: Source/web/WebGraphicsContextImpl.cpp
diff --git a/Source/web/WebGraphicsContextImpl.cpp b/Source/web/WebGraphicsContextImpl.cpp
index 2effc1b5d8c10b495fd56f2415c8f1a482e3668a..d40c99f06b8421895790a8a007fa673119036a0a 100644
--- a/Source/web/WebGraphicsContextImpl.cpp
+++ b/Source/web/WebGraphicsContextImpl.cpp
@@ -30,10 +30,8 @@ WebCanvas* WebGraphicsContextImpl::beginDrawing(const WebFloatRect& bounds)
ASSERT(!m_hasBegunDrawing);
m_hasBegunDrawing = true;
#endif
+ ASSERT(!DrawingRecorder::useCachedDrawingIfPossible(m_graphicsContext, m_client, m_type));
m_drawingRecorder = adoptPtr(new DrawingRecorder(m_graphicsContext, m_client, m_type, bounds));
-
- ASSERT(!m_drawingRecorder->canUseCachedDrawing());
-
WebCanvas* canvas = m_graphicsContext.canvas();
ASSERT(canvas);
return canvas;

Powered by Google App Engine
This is Rietveld 408576698