Index: webkit/plugins/npapi/webplugin_delegate_impl_win.cc |
=================================================================== |
--- webkit/plugins/npapi/webplugin_delegate_impl_win.cc (revision 85945) |
+++ webkit/plugins/npapi/webplugin_delegate_impl_win.cc (working copy) |
@@ -465,7 +465,8 @@ |
void WebPluginDelegateImpl::Paint(WebKit::WebCanvas* canvas, |
const gfx::Rect& rect) { |
if (windowless_) { |
- HDC hdc = skia::BeginPlatformPaint(canvas); |
+ skia::ScopedPlatformPaint scoped_platform_paint(canvas); |
+ HDC hdc = scoped_platform_paint.GetPlatformSurface(); |
WindowlessPaint(hdc, rect); |
skia::EndPlatformPaint(canvas); |
} |