summaryrefslogtreecommitdiffstats
path: root/skia/ext/platform_canvas_mac.cc
diff options
context:
space:
mode:
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