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

Unified Diff: content/renderer/render_view_impl.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/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 89b4592301ce18215a5c3adb0747be21d05d47c8..8dfa0bc4463f2bab0e360a045b7763b7a914ae1d 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -38,6 +38,7 @@
#include "base/trace_event/trace_event.h"
#include "build/build_config.h"
#include "cc/base/switches.h"
+#include "cc/paint/skia_paint_canvas.h"
#include "content/child/appcache/appcache_dispatcher.h"
#include "content/child/appcache/web_application_cache_host_impl.h"
#include "content/child/child_shared_bitmap_manager.h"
@@ -2528,7 +2529,7 @@ bool RenderViewImpl::didTapMultipleTargets(
SkImageInfo info = SkImageInfo::MakeN32Premul(canvas_size.width(),
canvas_size.height());
bitmap.installPixels(info, shared_bitmap->pixels(), info.minRowBytes());
- cc::PaintCanvas canvas(bitmap);
+ cc::SkiaPaintCanvas canvas(bitmap);
// TODO(trchen): Cleanup the device scale factor mess.
// device scale will be applied in WebKit
« no previous file with comments | « content/renderer/pepper/pepper_graphics_2d_host_unittest.cc ('k') | content/shell/test_runner/pixel_dump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698