| Index: skia/ext/bitmap_platform_device_mac.cc
|
| diff --git a/skia/ext/bitmap_platform_device_mac.cc b/skia/ext/bitmap_platform_device_mac.cc
|
| index 9c7966da07dc9e1a7f4dee78338508142834e366..1ad23e67ee166a643b00c4f458d9db6e989e38f7 100644
|
| --- a/skia/ext/bitmap_platform_device_mac.cc
|
| +++ b/skia/ext/bitmap_platform_device_mac.cc
|
| @@ -280,6 +280,14 @@ SkBaseDevice* BitmapPlatformDevice::onCreateCompatibleDevice(
|
| return Create(NULL, info.width(), info.height(), info.isOpaque(), do_clear);
|
| }
|
|
|
| +SkBaseDevice* BitmapPlatformDevice::onCreateDevice(const CreateInfo& cinfo,
|
| + const SkPaint*) {
|
| + const SkImageInfo& info = cinfo.fInfo;
|
| + const bool do_clear = !info.isOpaque();
|
| + SkASSERT(info.colorType() == kN32_SkColorType);
|
| + return Create(NULL, info.width(), info.height(), info.isOpaque(), do_clear);
|
| +}
|
| +
|
| // PlatformCanvas impl
|
|
|
| SkCanvas* CreatePlatformCanvas(CGContextRef ctx, int width, int height,
|
|
|