diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-22 20:20:39 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-22 20:20:39 +0000 |
commit | b49a99cebf7966e4de7a8357b5a759d97ad8e226 (patch) | |
tree | 96db3c4337c0a7433982b195915816878b418526 /skia/ext/bitmap_platform_device_linux.h | |
parent | 67be397e2883b7c03073d8e04a22c4a10e07e0a7 (diff) | |
download | chromium_src-b49a99cebf7966e4de7a8357b5a759d97ad8e226.zip chromium_src-b49a99cebf7966e4de7a8357b5a759d97ad8e226.tar.gz chromium_src-b49a99cebf7966e4de7a8357b5a759d97ad8e226.tar.bz2 |
Linux Skia: add an option to build a canvas from a provided memory buffer
Review URL: http://codereview.chromium.org/18678
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8503 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/bitmap_platform_device_linux.h')
-rw-r--r-- | skia/ext/bitmap_platform_device_linux.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/skia/ext/bitmap_platform_device_linux.h b/skia/ext/bitmap_platform_device_linux.h index b4f0c1bc..cfc72e2 100644 --- a/skia/ext/bitmap_platform_device_linux.h +++ b/skia/ext/bitmap_platform_device_linux.h @@ -62,6 +62,11 @@ class BitmapPlatformDeviceLinux : public PlatformDeviceLinux { /// Static constructor. I don't understand this, it's just a copy of the mac static BitmapPlatformDeviceLinux* Create(int width, int height, bool is_opaque); + static BitmapPlatformDeviceLinux* Create(int width, int height, + bool is_opaque, uint8_t* data); + static BitmapPlatformDeviceLinux* Create(int width, int height, + bool is_opaque, + cairo_surface_t* surface); // Create a BitmapPlatformDeviceLinux from an already constructed bitmap; // you should probably be using Create(). This may become private later if |