diff options
Diffstat (limited to 'webkit/plugins/npapi/webplugin_delegate_impl_win.cc')
-rw-r--r-- | webkit/plugins/npapi/webplugin_delegate_impl_win.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/plugins/npapi/webplugin_delegate_impl_win.cc b/webkit/plugins/npapi/webplugin_delegate_impl_win.cc index c055773..0b4b7ee 100644 --- a/webkit/plugins/npapi/webplugin_delegate_impl_win.cc +++ b/webkit/plugins/npapi/webplugin_delegate_impl_win.cc @@ -465,9 +465,9 @@ void WebPluginDelegateImpl::PlatformDestroyInstance() { 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); } } |