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

Unified Diff: webkit/plugins/sad_plugin.cc

Issue 6783023: Eliminate skia::PlatformCanvas - Step 1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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/sad_plugin.cc
===================================================================
--- webkit/plugins/sad_plugin.cc (revision 80026)
+++ webkit/plugins/sad_plugin.cc (working copy)
@@ -38,9 +38,11 @@
// then copy that to the screen than to use the native APIs. The small speed
// penalty is not important when drawing crashed plugins.
#if WEBKIT_USING_SKIA
- gfx::NativeDrawingContext context = webcanvas->beginPlatformPaint();
reed1 2011/04/01 17:44:42 I presume these casts get replaced by some static
alokp 2011/04/01 19:57:38 Done.
+ skia::PlatformCanvas* platform_canvas =
+ static_cast<skia::PlatformCanvas*>(webcanvas);
+ gfx::NativeDrawingContext context = platform_canvas->beginPlatformPaint();
BlitCanvasToContext(context, plugin_rect, &canvas, gfx::Point(0, 0));
- webcanvas->endPlatformPaint();
+ platform_canvas->endPlatformPaint();
#elif WEBKIT_USING_CG
BlitCanvasToContext(webcanvas, plugin_rect, &canvas, gfx::Point(0, 0));
#endif
« webkit/glue/webthemeengine_impl_win.cc ('K') | « webkit/plugins/ppapi/ppapi_plugin_instance.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698