diff options
Diffstat (limited to 'webkit/plugins/sad_plugin.cc')
-rw-r--r-- | webkit/plugins/sad_plugin.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/webkit/plugins/sad_plugin.cc b/webkit/plugins/sad_plugin.cc index c129d34..b85d48a 100644 --- a/webkit/plugins/sad_plugin.cc +++ b/webkit/plugins/sad_plugin.cc @@ -38,9 +38,10 @@ void PaintSadPlugin(WebKit::WebCanvas* webcanvas, // then copy that to the screen than to use the native APIs. The small speed // penalty is not important when drawing crashed plugins. #if WEBKIT_USING_SKIA - gfx::NativeDrawingContext context = skia::BeginPlatformPaint(webcanvas); + skia::ScopedPlatformPaint scoped_platform_paint(webcanvas); + gfx::NativeDrawingContext context = + scoped_platform_paint.GetPlatformSurface(); BlitCanvasToContext(context, plugin_rect, &canvas, gfx::Point(0, 0)); - skia::EndPlatformPaint(webcanvas); #elif WEBKIT_USING_CG BlitCanvasToContext(webcanvas, plugin_rect, &canvas, gfx::Point(0, 0)); #endif |