From 9e48761f7b3ee4714512a8d83b483e89d5dc6dee Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Mon, 13 Jul 2009 19:40:45 +0000 Subject: linux: don't destroy the cairo_t* returned by beginPlatformPaint(). (Checking in on a closed tree because Brett thinks it'll fix layout tests.) Review URL: http://codereview.chromium.org/149557 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20513 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/renderer/webplugin_delegate_proxy.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'chrome/renderer/webplugin_delegate_proxy.cc') diff --git a/chrome/renderer/webplugin_delegate_proxy.cc b/chrome/renderer/webplugin_delegate_proxy.cc index 4644ccd..7c0edeb 100644 --- a/chrome/renderer/webplugin_delegate_proxy.cc +++ b/chrome/renderer/webplugin_delegate_proxy.cc @@ -936,9 +936,8 @@ void WebPluginDelegateProxy::PaintSadPlugin(gfx::NativeDrawingContext context, cairo_set_source_surface(cairo, cairo_get_target(context), plugin_rect_.x(), plugin_rect_.y()); cairo_paint(cairo); - cairo_destroy(cairo); // We have no endPlatformPaint() on the Linux PlatformDevice. - // The surface is owned by the device. + // The cairo_t* is owned by the device. #elif defined(OS_MACOSX) canvas.getTopPlatformDevice().DrawToContext( context, plugin_rect_.x(), plugin_rect_.y(), NULL); -- cgit v1.1