summaryrefslogtreecommitdiffstats
path: root/skia/ext/bitmap_platform_device_cairo.h
diff options
context:
space:
mode:
authorreed@google.com <reed@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-20 16:58:01 +0000
committerreed@google.com <reed@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-20 16:58:01 +0000
commitb8148be0c452bb08eccd8dbfd5fb118b313a693e (patch)
tree9d6fbd0f24cc0d58d3c5eab8a673300d48a838ae /skia/ext/bitmap_platform_device_cairo.h
parentd26da8db4aefc7ddade5f6c06896154d590ed42e (diff)
downloadchromium_src-b8148be0c452bb08eccd8dbfd5fb118b313a693e.zip
chromium_src-b8148be0c452bb08eccd8dbfd5fb118b313a693e.tar.gz
chromium_src-b8148be0c452bb08eccd8dbfd5fb118b313a693e.tar.bz2
create cairo before we hand-off the surface, in case the surface is destroyed
BUG= Review URL: https://codereview.chromium.org/172563002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252271 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/bitmap_platform_device_cairo.h')
-rw-r--r--skia/ext/bitmap_platform_device_cairo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/skia/ext/bitmap_platform_device_cairo.h b/skia/ext/bitmap_platform_device_cairo.h
index 5b3c46c..8d8f388 100644
--- a/skia/ext/bitmap_platform_device_cairo.h
+++ b/skia/ext/bitmap_platform_device_cairo.h
@@ -63,8 +63,8 @@ class BitmapPlatformDevice : public SkBitmapDevice, public PlatformDevice {
// we ever have to share state between some native drawing UI and Skia, like
// the Windows and Mac versions of this class do.
//
- // This object takes ownership of @data.
- BitmapPlatformDevice(const SkBitmap& other, cairo_surface_t* surface);
+ // This object takes ownership of @cairo.
+ BitmapPlatformDevice(const SkBitmap& other, cairo_t* cairo);
virtual ~BitmapPlatformDevice();
// Constructs a device with size |width| * |height| with contents initialized