Index: skia/ext/bitmap_platform_device_linux.cc |
=================================================================== |
--- skia/ext/bitmap_platform_device_linux.cc (revision 98225) |
+++ skia/ext/bitmap_platform_device_linux.cc (working copy) |
@@ -120,8 +120,9 @@ |
BitmapPlatformDevice::BitmapPlatformDevice( |
const SkBitmap& bitmap, |
BitmapPlatformDeviceData* data) |
- : PlatformDevice(bitmap), |
+ : SkDevice(bitmap), |
data_(data) { |
+ SetPlatformDevice(this, this); |
} |
BitmapPlatformDevice::~BitmapPlatformDevice() { |
@@ -146,6 +147,12 @@ |
return cairo; |
} |
+void BitmapPlatformDevice::DrawToNativeContext( |
+ PlatformSurface surface, int x, int y, const PlatformRect* src_rect) { |
+ // Should never be called on Linux. |
+ SkASSERT(false); |
+} |
+ |
void BitmapPlatformDevice::setMatrixClip(const SkMatrix& transform, |
const SkRegion& region, |
const SkClipStack&) { |