Chromium Code Reviews| 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 b7b05e50a3c8187dcf39880ea920495ef44de06a..7062aa85f3c856483362323e657f209e9bb8f0c4 100644 |
| --- a/skia/ext/bitmap_platform_device_mac.cc |
| +++ b/skia/ext/bitmap_platform_device_mac.cc |
| @@ -193,10 +193,10 @@ BitmapPlatformDevice* BitmapPlatformDevice::CreateWithData(uint8_t* data, |
| } |
| // The device will own the bitmap, which corresponds to also owning the pixel |
| -// data. Therefore, we do not transfer ownership to the SkDevice's bitmap. |
| +// data. Therefore, we do not transfer ownership to the SkBitmapDevice's bitmap. |
| BitmapPlatformDevice::BitmapPlatformDevice( |
| const skia::RefPtr<BitmapPlatformDeviceData>& data, const SkBitmap& bitmap) |
| - : SkDevice(bitmap), |
| + : SkBitmapDevice(bitmap), |
| data_(data) { |
| SetPlatformDevice(this, this); |
| } |
| @@ -251,12 +251,12 @@ const SkBitmap& BitmapPlatformDevice::onAccessBitmap(SkBitmap* bitmap) { |
| return *bitmap; |
| } |
| -SkDevice* BitmapPlatformDevice::onCreateCompatibleDevice( |
| +SkBaseDevice* BitmapPlatformDevice::onCreateCompatibleDevice( |
| SkBitmap::Config config, int width, int height, bool isOpaque, |
| Usage /*usage*/) { |
| SkASSERT(config == SkBitmap::kARGB_8888_Config); |
| - SkDevice* bitmap_device = BitmapPlatformDevice::CreateAndClear(width, height, |
| - isOpaque); |
| + SkBaseDevice* bitmap_device = BitmapPlatformDevice::CreateAndClear(width, height, |
|
vandebo (ex-Chrome)
2013/08/22 20:41:58
80 col
robertphillips
2013/08/23 14:01:03
Done.
|
| + isOpaque); |
| return bitmap_device; |
| } |
| @@ -264,14 +264,14 @@ SkDevice* BitmapPlatformDevice::onCreateCompatibleDevice( |
| SkCanvas* CreatePlatformCanvas(CGContextRef ctx, int width, int height, |
| bool is_opaque, OnFailureType failureType) { |
| - skia::RefPtr<SkDevice> dev = skia::AdoptRef( |
| + skia::RefPtr<SkBaseDevice> dev = skia::AdoptRef( |
| BitmapPlatformDevice::Create(ctx, width, height, is_opaque)); |
| return CreateCanvas(dev, failureType); |
| } |
| SkCanvas* CreatePlatformCanvas(int width, int height, bool is_opaque, |
| uint8_t* data, OnFailureType failureType) { |
| - skia::RefPtr<SkDevice> dev = skia::AdoptRef( |
| + skia::RefPtr<SkBaseDevice> dev = skia::AdoptRef( |
| BitmapPlatformDevice::CreateWithData(data, width, height, is_opaque)); |
| return CreateCanvas(dev, failureType); |
| } |