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

Unified Diff: third_party/WebKit/Source/platform/exported/WebFont.cpp

Issue 2755183002: Change drawPicture calls to playback to avoid culling (Closed)
Patch Set: Address review comments Created 3 years, 9 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: third_party/WebKit/Source/platform/exported/WebFont.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebFont.cpp b/third_party/WebKit/Source/platform/exported/WebFont.cpp
index caa24c41236da059fc46b127fa68b8eee175245c..de4b68eead40928efa9eee4e7d26cfa3687ba824 100644
--- a/third_party/WebKit/Source/platform/exported/WebFont.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebFont.cpp
@@ -101,7 +101,7 @@ void WebFont::drawText(WebCanvas* canvas,
context.restore();
}
- canvas->drawPicture(builder.endRecording());
+ canvas->PlaybackPaintRecord(builder.endRecording());
}
int WebFont::calculateWidth(const WebTextRun& run) const {

Powered by Google App Engine
This is Rietveld 408576698