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

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

Issue 2791043002: Draw recorded content directly into the containing PaintCanvas, when possible. (Closed)
Patch Set: none 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 de4b68eead40928efa9eee4e7d26cfa3687ba824..ac8e6cca4ba4eb720ebc9ce76e11d95189acb736 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->PlaybackPaintRecord(builder.endRecording());
+ builder.endRecording(*canvas);
}
int WebFont::calculateWidth(const WebTextRun& run) const {

Powered by Google App Engine
This is Rietveld 408576698