Index: content/renderer/webplugin_delegate_proxy.cc |
=================================================================== |
--- content/renderer/webplugin_delegate_proxy.cc (revision 80026) |
+++ content/renderer/webplugin_delegate_proxy.cc (working copy) |
@@ -725,7 +725,9 @@ |
// We're using the native OS APIs from here on out. |
#if WEBKIT_USING_SKIA |
- gfx::NativeDrawingContext context = canvas->beginPlatformPaint(); |
+ skia::PlatformCanvas* platform_canvas = |
+ static_cast<skia::PlatformCanvas*>(canvas); |
+ gfx::NativeDrawingContext context = platform_canvas->beginPlatformPaint(); |
#elif WEBKIT_USING_CG |
gfx::NativeDrawingContext context = canvas; |
#endif |
@@ -763,7 +765,7 @@ |
} |
#if WEBKIT_USING_SKIA |
- canvas->endPlatformPaint(); |
+ platform_canvas->endPlatformPaint(); |
#endif |
} |