summaryrefslogtreecommitdiffstats
path: root/skia
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-21 20:25:22 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-21 20:25:22 +0000
commit757a8eb4c023fc3b9c6cc59be0005a9bf12c438e (patch)
treec244761450ec29a3cb7dbd702189b5578c30c3c9 /skia
parentefb3c37794a63848fbfe2797c60c768db95e939d (diff)
downloadchromium_src-757a8eb4c023fc3b9c6cc59be0005a9bf12c438e.zip
chromium_src-757a8eb4c023fc3b9c6cc59be0005a9bf12c438e.tar.gz
chromium_src-757a8eb4c023fc3b9c6cc59be0005a9bf12c438e.tar.bz2
Add a new ctor to CanvasSkia that takes a const SkBitmap&.
BUG=100898 R=pkasting@chromium.org TBR=ben@chromium.org Review URL: http://codereview.chromium.org/9006001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115384 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
-rw-r--r--skia/ext/bitmap_platform_device_linux.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/skia/ext/bitmap_platform_device_linux.cc b/skia/ext/bitmap_platform_device_linux.cc
index 0813d65..c95f3a9 100644
--- a/skia/ext/bitmap_platform_device_linux.cc
+++ b/skia/ext/bitmap_platform_device_linux.cc
@@ -95,9 +95,9 @@ BitmapPlatformDevice* BitmapPlatformDevice::Create(int width, int height,
BitmapPlatformDevice* BitmapPlatformDevice::Create(int width, int height,
bool is_opaque) {
- cairo_surface_t* surface =
- cairo_image_surface_create(CAIRO_FORMAT_ARGB32,
- width, height);
+ // This initializes the bitmap to all zeros.
+ cairo_surface_t* surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32,
+ width, height);
BitmapPlatformDevice* device = Create(width, height, is_opaque, surface);