diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-13 19:40:45 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-13 19:40:45 +0000 |
commit | 9e48761f7b3ee4714512a8d83b483e89d5dc6dee (patch) | |
tree | e2aed2481a4c78eff0ffa6ace7fe9dcd916a93d6 /chrome/renderer/webplugin_delegate_proxy.cc | |
parent | 3e581acde183d511352e60ad69e8dd07ba20a2f4 (diff) | |
download | chromium_src-9e48761f7b3ee4714512a8d83b483e89d5dc6dee.zip chromium_src-9e48761f7b3ee4714512a8d83b483e89d5dc6dee.tar.gz chromium_src-9e48761f7b3ee4714512a8d83b483e89d5dc6dee.tar.bz2 |
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
Diffstat (limited to 'chrome/renderer/webplugin_delegate_proxy.cc')
-rw-r--r-- | chrome/renderer/webplugin_delegate_proxy.cc | 3 |
1 files changed, 1 insertions, 2 deletions
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); |