Index: webkit/plugins/ppapi/ppb_graphics_2d_impl.cc |
diff --git a/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc b/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc |
index 79821bb55a0b06764cdc9dafe0eb6aced70006ef..e7dae9601141dad91e5bea3406ae34028beed207 100644 |
--- a/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc |
+++ b/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc |
@@ -184,7 +184,8 @@ PP_Resource PPB_Graphics2D_Impl::Create(PP_Instance instance, |
bool PPB_Graphics2D_Impl::Init(int width, int height, bool is_always_opaque) { |
// The underlying PPB_ImageData_Impl will validate the dimensions. |
- image_data_ = new PPB_ImageData_Impl(pp_instance()); |
+ image_data_ = new PPB_ImageData_Impl(pp_instance(), |
+ PPB_ImageData_Impl::PLATFORM); |
if (!image_data_->Init(PPB_ImageData_Impl::GetNativeImageDataFormat(), |
width, height, true) || |
!image_data_->Map()) { |
@@ -433,7 +434,7 @@ bool PPB_Graphics2D_Impl::ReadImageData(PP_Resource image, |
// 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->GetPlatformCanvas(); |
+ SkCanvas* dest_canvas = image_resource->GetCanvas(); |
// We want to replace the contents of the bitmap rather than blend. |
SkPaint paint; |
@@ -636,7 +637,7 @@ void PPB_Graphics2D_Impl::ExecutePaintImageData(PPB_ImageData_Impl* image, |
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_->GetPlatformCanvas(); |
+ SkCanvas* backing_canvas = image_data_->GetCanvas(); |
// We want to replace the contents of the bitmap rather than blend. |
SkPaint paint; |
@@ -649,7 +650,7 @@ void PPB_Graphics2D_Impl::ExecutePaintImageData(PPB_ImageData_Impl* image, |
void PPB_Graphics2D_Impl::ExecuteScroll(const gfx::Rect& clip, |
int dx, int dy, |
gfx::Rect* invalidated_rect) { |
- gfx::ScrollCanvas(image_data_->GetPlatformCanvas(), |
+ gfx::ScrollCanvas(image_data_->GetCanvas(), |
clip, gfx::Point(dx, dy)); |
*invalidated_rect = clip; |
} |