| Index: skia/ext/platform_canvas_mac.cc
|
| ===================================================================
|
| --- skia/ext/platform_canvas_mac.cc (revision 18385)
|
| +++ skia/ext/platform_canvas_mac.cc (working copy)
|
| @@ -40,8 +40,8 @@
|
| 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 @@
|
| 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
|
|
|