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

Unified Diff: webkit/plugins/ppapi/ppb_graphics_2d_impl.cc

Issue 9192038: Relanding this with fixes to the mac dbg builder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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 | « webkit/plugins/ppapi/ppb_font_impl.cc ('k') | webkit/plugins/ppapi/ppb_image_data_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_graphics_2d_impl.cc
===================================================================
--- webkit/plugins/ppapi/ppb_graphics_2d_impl.cc (revision 118405)
+++ webkit/plugins/ppapi/ppb_graphics_2d_impl.cc (working copy)
@@ -398,7 +398,7 @@
// Convert the image data if the format does not match.
ConvertImageData(image_data_, src_irect, image_resource, dest_rect);
} else {
- skia::PlatformCanvas* dest_canvas = image_resource->mapped_canvas();
+ skia::PlatformCanvas* dest_canvas = image_resource->GetPlatformCanvas();
// We want to replace the contents of the bitmap rather than blend.
SkPaint paint;
@@ -583,7 +583,7 @@
ConvertImageData(image, src_irect, image_data_, dest_rect);
} else {
// We're guaranteed to have a mapped canvas since we mapped it in Init().
- skia::PlatformCanvas* backing_canvas = image_data_->mapped_canvas();
+ skia::PlatformCanvas* backing_canvas = image_data_->GetPlatformCanvas();
// We want to replace the contents of the bitmap rather than blend.
SkPaint paint;
@@ -596,7 +596,7 @@
void PPB_Graphics2D_Impl::ExecuteScroll(const gfx::Rect& clip,
int dx, int dy,
gfx::Rect* invalidated_rect) {
- gfx::ScrollCanvas(image_data_->mapped_canvas(),
+ gfx::ScrollCanvas(image_data_->GetPlatformCanvas(),
clip, gfx::Point(dx, dy));
*invalidated_rect = clip;
}
« no previous file with comments | « webkit/plugins/ppapi/ppb_font_impl.cc ('k') | webkit/plugins/ppapi/ppb_image_data_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698