Index: webkit/plugins/npapi/webplugin_delegate_impl_win.cc |
=================================================================== |
--- webkit/plugins/npapi/webplugin_delegate_impl_win.cc (revision 86706) |
+++ webkit/plugins/npapi/webplugin_delegate_impl_win.cc (working copy) |
@@ -465,9 +465,9 @@ |
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); |
} |
} |