Index: webkit/plugins/npapi/webplugin_delegate_impl_win.cc |
=================================================================== |
--- webkit/plugins/npapi/webplugin_delegate_impl_win.cc (revision 80026) |
+++ webkit/plugins/npapi/webplugin_delegate_impl_win.cc (working copy) |
@@ -462,12 +462,14 @@ |
} |
} |
-void WebPluginDelegateImpl::Paint(skia::PlatformCanvas* canvas, |
+void WebPluginDelegateImpl::Paint(WebKit::WebCanvas* canvas, |
const gfx::Rect& rect) { |
if (windowless_) { |
- HDC hdc = canvas->beginPlatformPaint(); |
+ skia::PlatformCanvas* platform_canvas = |
+ static_cast<skia::PlatformCanvas*>(canvas); |
+ HDC hdc = platform_canvas->beginPlatformPaint(); |
WindowlessPaint(hdc, rect); |
- canvas->endPlatformPaint(); |
+ platform_canvas->endPlatformPaint(); |
} |
} |