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

Unified Diff: Source/web/WebFontImpl.cpp

Issue 1220583004: Refactor DrawingRecorders to check for cached drawings earlier (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 5 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
« no previous file with comments | « Source/web/PageWidgetDelegate.cpp ('k') | Source/web/WebGraphicsContextImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebFontImpl.cpp
diff --git a/Source/web/WebFontImpl.cpp b/Source/web/WebFontImpl.cpp
index 6411355fe47dc1591c2a559bf9a12d0d873ccac9..3486dd1cc676846fffb1539787858ed82870eb84 100644
--- a/Source/web/WebFontImpl.cpp
+++ b/Source/web/WebFontImpl.cpp
@@ -99,9 +99,9 @@ void WebFontImpl::drawText(WebCanvas* canvas, const WebTextRun& run, const WebFl
SkPictureBuilder pictureBuilder(intRect);
GraphicsContext* context = &pictureBuilder.context();
+ ASSERT(!DrawingRecorder::useCachedDrawingIfPossible(*context, *this, DisplayItem::WebFont));
{
DrawingRecorder drawingRecorder(*context, *this, DisplayItem::WebFont, intRect);
- ASSERT(!drawingRecorder.canUseCachedDrawing());
context->save();
context->setFillColor(color);
context->clip(textClipRect);
« no previous file with comments | « Source/web/PageWidgetDelegate.cpp ('k') | Source/web/WebGraphicsContextImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698