| Index: skia/ext/vector_platform_device_cairo_linux.cc
|
| ===================================================================
|
| --- skia/ext/vector_platform_device_cairo_linux.cc (revision 98232)
|
| +++ skia/ext/vector_platform_device_cairo_linux.cc (working copy)
|
| @@ -69,8 +69,9 @@
|
| namespace skia {
|
|
|
| // static
|
| -SkDevice* VectorPlatformDeviceCairo::CreateDevice(cairo_t* context, int width,
|
| - int height, bool isOpaque) {
|
| +PlatformDevice* VectorPlatformDeviceCairo::CreateDevice(cairo_t* context,
|
| + int width, int height,
|
| + bool isOpaque) {
|
| // TODO(myhuang): Here we might also have similar issues as those on Windows
|
| // (vector_canvas_win.cc, http://crbug.com/18382 & http://crbug.com/18383).
|
| // Please note that is_opaque is true when we use this class for printing.
|
| @@ -91,12 +92,10 @@
|
|
|
| VectorPlatformDeviceCairo::VectorPlatformDeviceCairo(PlatformSurface context,
|
| const SkBitmap& bitmap)
|
| - : SkDevice(bitmap),
|
| + : PlatformDevice(bitmap),
|
| context_(context) {
|
| SkASSERT(bitmap.getConfig() == SkBitmap::kARGB_8888_Config);
|
|
|
| - SetPlatformDevice(this, this);
|
| -
|
| // Increase the reference count to keep the context alive.
|
| cairo_reference(context_);
|
|
|
| @@ -108,16 +107,11 @@
|
| cairo_destroy(context_);
|
| }
|
|
|
| -PlatformSurface VectorPlatformDeviceCairo::BeginPlatformPaint() {
|
| +PlatformDevice::PlatformSurface
|
| +VectorPlatformDeviceCairo::BeginPlatformPaint() {
|
| return context_;
|
| }
|
|
|
| -void VectorPlatformDeviceCairo::DrawToNativeContext(
|
| - PlatformSurface surface, int x, int y, const PlatformRect* src_rect) {
|
| - // Should never be called on Linux.
|
| - SkASSERT(false);
|
| -}
|
| -
|
| SkDevice* VectorPlatformDeviceCairo::onCreateCompatibleDevice(
|
| SkBitmap::Config config,
|
| int width, int height,
|
|
|