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

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

Issue 10915065: Add PlatformPictureSkia and RecordingPlatformDeviceSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Explicit platform paint enum checks Created 8 years, 3 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: 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;

Powered by Google App Engine
This is Rietveld 408576698