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

Unified Diff: content/child/browser_font_resource_trusted.cc

Issue 2752593002: cc: Make PaintCanvas abstract (Closed)
Patch Set: Remove default parameters on virtual functions 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: content/child/browser_font_resource_trusted.cc
diff --git a/content/child/browser_font_resource_trusted.cc b/content/child/browser_font_resource_trusted.cc
index 3ceca36ac591692a0acc55e73c598ac5cd794e01..84b0a089ce4b30524d6337de253231f14435644b 100644
--- a/content/child/browser_font_resource_trusted.cc
+++ b/content/child/browser_font_resource_trusted.cc
@@ -9,6 +9,7 @@
#include "base/macros.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
+#include "cc/paint/skia_paint_canvas.h"
#include "content/public/common/web_preferences.h"
#include "ppapi/proxy/connection.h"
#include "ppapi/shared_impl/ppapi_preferences.h"
@@ -341,11 +342,11 @@ PP_Bool BrowserFontResource_Trusted::DrawTextAt(
return result;
SkSurfaceProps props(0, kUnknown_SkPixelGeometry);
- cc::PaintCanvas temp_canvas(bm, props);
+ cc::SkiaPaintCanvas temp_canvas(bm, props);
DrawTextToCanvas(&temp_canvas, *text, position, color, clip);
} else {
- cc::PaintCanvas temp_canvas(canvas);
+ cc::SkiaPaintCanvas temp_canvas(canvas);
DrawTextToCanvas(&temp_canvas, *text, position, color, clip);
}

Powered by Google App Engine
This is Rietveld 408576698