| Index: skia/ext/platform_device_linux.cc
|
| ===================================================================
|
| --- skia/ext/platform_device_linux.cc (revision 98232)
|
| +++ skia/ext/platform_device_linux.cc (working copy)
|
| @@ -6,12 +6,23 @@
|
|
|
| namespace skia {
|
|
|
| -PlatformSurface PlatformDevice::BeginPlatformPaint() {
|
| - return NULL;
|
| +PlatformDevice::PlatformDevice(const SkBitmap& bitmap)
|
| + : SkDevice(bitmap) {
|
| + SetPlatformDevice(this, this);
|
| }
|
|
|
| +bool PlatformDevice::IsNativeFontRenderingAllowed() {
|
| + return true;
|
| +}
|
| +
|
| void PlatformDevice::EndPlatformPaint() {
|
| // We don't need to do anything on Linux here.
|
| }
|
|
|
| +void PlatformDevice::DrawToNativeContext(PlatformSurface surface, int x, int y,
|
| + const PlatformRect* src_rect) {
|
| + // Should never be called on Linux.
|
| + SkASSERT(false);
|
| +}
|
| +
|
| } // namespace skia
|
|
|
|
|