| Index: skia/ext/platform_canvas_linux.cc
|
| diff --git a/skia/ext/platform_canvas_linux.cc b/skia/ext/platform_canvas_linux.cc
|
| index 109b232b55dfdfaeb48c4cc0d7d416353d628d8d..5acbd147ca29fa750a272165d57d493fed21c6e0 100644
|
| --- a/skia/ext/platform_canvas_linux.cc
|
| +++ b/skia/ext/platform_canvas_linux.cc
|
| @@ -12,18 +12,15 @@
|
|
|
| namespace skia {
|
|
|
| -PlatformCanvas::PlatformCanvas() : SkCanvas() {
|
| -}
|
| -
|
| PlatformCanvas::PlatformCanvas(int width, int height, bool is_opaque)
|
| - : SkCanvas() {
|
| + : SkCanvas(SkNEW(SkBitmapPlatformDeviceFactory)) {
|
| if (!initialize(width, height, is_opaque))
|
| SK_CRASH();
|
| }
|
|
|
| PlatformCanvas::PlatformCanvas(int width, int height, bool is_opaque,
|
| uint8_t* data)
|
| - : SkCanvas() {
|
| + : SkCanvas(SkNEW(SkBitmapPlatformDeviceFactory)) {
|
| if (!initialize(width, height, is_opaque, data))
|
| SK_CRASH();
|
| }
|
| @@ -50,13 +47,4 @@ void PlatformCanvas::endPlatformPaint() {
|
| // We don't need to do anything on Linux here.
|
| }
|
|
|
| -SkDevice* PlatformCanvas::createDevice(SkBitmap::Config config,
|
| - int width,
|
| - int height,
|
| - bool is_opaque,
|
| - bool isForLayer) {
|
| - SkASSERT(config == SkBitmap::kARGB_8888_Config);
|
| - return BitmapPlatformDevice::Create(width, height, is_opaque);
|
| -}
|
| -
|
| } // namespace skia
|
|
|