| 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 a838f1f70f9483cc0b8e2f7bd6c3b2d347518e70..6b6f2268b3c53e132a1ed2a8addb84d8b7c42ca6 100644
|
| --- a/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc
|
| +++ b/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc
|
| @@ -588,7 +588,8 @@ void PPB_Graphics2D_Impl::Paint(WebKit::WebCanvas* canvas,
|
| SkBitmap image;
|
| // Copy to device independent bitmap when target canvas doesn't support
|
| // platform paint.
|
| - if (!skia::SupportsPlatformPaint(canvas))
|
| + if (skia::PlatformPaintSupport(canvas) ==
|
| + skia::PlatformDevice::PLATFORM_PAINT_UNSUPPORTED)
|
| backing_bitmap.copyTo(&image, SkBitmap::kARGB_8888_Config);
|
| else
|
| image = backing_bitmap;
|
|
|