diff options
Diffstat (limited to 'webkit/plugins/npapi/webplugin_delegate_impl_gtk.cc')
-rw-r--r-- | webkit/plugins/npapi/webplugin_delegate_impl_gtk.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/plugins/npapi/webplugin_delegate_impl_gtk.cc b/webkit/plugins/npapi/webplugin_delegate_impl_gtk.cc index dc34edb..7e2f584 100644 --- a/webkit/plugins/npapi/webplugin_delegate_impl_gtk.cc +++ b/webkit/plugins/npapi/webplugin_delegate_impl_gtk.cc @@ -111,9 +111,9 @@ void WebPluginDelegateImpl::Paint(WebKit::WebCanvas* canvas, const gfx::Rect& rect) { if (!windowless_) return; - cairo_t* context = skia::BeginPlatformPaint(canvas); + skia::ScopedPlatformPaint scoped_platform_paint(canvas); + cairo_t* context = scoped_platform_paint.GetPlatformSurface(); WindowlessPaint(context, rect); - skia::EndPlatformPaint(canvas); } void WebPluginDelegateImpl::InstallMissingPlugin() { |