Index: skia/ext/platform_device_linux.cc |
=================================================================== |
--- skia/ext/platform_device_linux.cc (revision 85672) |
+++ skia/ext/platform_device_linux.cc (working copy) |
@@ -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 @@ |
// 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 |