summaryrefslogtreecommitdiffstats
path: root/skia/ext/platform_canvas_mac.cc
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-15 19:05:44 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-15 19:05:44 +0000
commit18ca68b79a60b2de95ae89da3075df2ee3241471 (patch)
treea8520d715ed9ea9893307aa834bbc29d4fc8c3ac /skia/ext/platform_canvas_mac.cc
parent94486c00c7ee5ed1e9e4cb28f27ed447ffe20e96 (diff)
downloadchromium_src-18ca68b79a60b2de95ae89da3075df2ee3241471.zip
chromium_src-18ca68b79a60b2de95ae89da3075df2ee3241471.tar.gz
chromium_src-18ca68b79a60b2de95ae89da3075df2ee3241471.tar.bz2
Properly use data when creating a bitmap platform canvas. Gets things painting
on the screen again. Regressed in r18363. Review URL: http://codereview.chromium.org/126140 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18415 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/platform_canvas_mac.cc')
-rw-r--r--skia/ext/platform_canvas_mac.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/skia/ext/platform_canvas_mac.cc b/skia/ext/platform_canvas_mac.cc
index 4e42bb1..e75e55aa 100644
--- a/skia/ext/platform_canvas_mac.cc
+++ b/skia/ext/platform_canvas_mac.cc
@@ -40,8 +40,8 @@ bool PlatformCanvas::initialize(int width,
int height,
bool is_opaque,
uint8_t* data) {
- SkDevice* device = BitmapPlatformDevice::Create(NULL, width, height,
- is_opaque);
+ SkDevice* device = BitmapPlatformDevice::CreateWithData(data, width, height,
+ is_opaque);
if (!device)
return false;
@@ -63,7 +63,8 @@ SkDevice* PlatformCanvas::createDevice(SkBitmap::Config config,
int height,
bool is_opaque, bool isForLayer) {
SkASSERT(config == SkBitmap::kARGB_8888_Config);
- return BitmapPlatformDevice::Create(NULL, width, height, is_opaque);
+ return BitmapPlatformDevice::CreateWithContext(NULL, width, height,
+ is_opaque);
}
} // namespace skia