diff options
Diffstat (limited to 'skia/ext/platform_device_linux.cc')
-rw-r--r-- | skia/ext/platform_device_linux.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/skia/ext/platform_device_linux.cc b/skia/ext/platform_device_linux.cc index b943120..675d19f 100644 --- a/skia/ext/platform_device_linux.cc +++ b/skia/ext/platform_device_linux.cc @@ -2,12 +2,13 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "skia/ext/platform_device_linux.h" +#include "skia/ext/platform_device.h" namespace skia { PlatformDevice::PlatformDevice(const SkBitmap& bitmap) : SkDevice(NULL, bitmap, /*isForLayer=*/false) { + SetPlatformDevice(this, this); } bool PlatformDevice::IsNativeFontRenderingAllowed() { @@ -18,4 +19,10 @@ 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 |