Index: webkit/plugins/npapi/webplugin_delegate_impl_gtk.cc |
=================================================================== |
--- webkit/plugins/npapi/webplugin_delegate_impl_gtk.cc (revision 86706) |
+++ webkit/plugins/npapi/webplugin_delegate_impl_gtk.cc (working copy) |
@@ -111,9 +111,9 @@ |
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() { |