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

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: Add IsPlatformPaintSupported(), update comment in WebPluginDelegateProxy::Paint and require direct … 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..8cee21bb6e78bfdc8168ed37f568ecd7007c9b8c 100644
--- a/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc
+++ b/webkit/plugins/ppapi/ppb_graphics_2d_impl.cc
@@ -587,8 +587,9 @@ 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))
+ // direct platform paint.
+ if (skia::PlatformPaintSupport(canvas) !=
+ skia::PlatformDevice::PLATFORM_PAINT_DIRECT)
backing_bitmap.copyTo(&image, SkBitmap::kARGB_8888_Config);
else
image = backing_bitmap;
« skia/ext/platform_canvas.h ('K') | « webkit/plugins/npapi/webplugin_delegate_impl_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698