diff options
-rw-r--r-- | include/core/SkCanvas.h | 12 | ||||
-rw-r--r-- | src/core/SkCanvas.cpp | 8 |
2 files changed, 0 insertions, 20 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h index e6c9ee2fab..7235efb2f0 100644 --- a/include/core/SkCanvas.h +++ b/include/core/SkCanvas.h @@ -18,8 +18,6 @@ #include "SkRegion.h" #include "SkXfermode.h" -//#define SK_SUPPORT_LEGACY_CANVAS_CREATECOMPATIBLEDEVICE - class SkBounder; class SkBaseDevice; class SkDraw; @@ -113,16 +111,6 @@ public: */ SkBaseDevice* getTopDevice(bool updateMatrixClip = false) const; -#ifdef SK_SUPPORT_LEGACY_CANVAS_CREATECOMPATIBLEDEVICE - /** - * Shortcut for getDevice()->createCompatibleDevice(...). - * If getDevice() == NULL, this method does nothing, and returns NULL. - */ - SkBaseDevice* createCompatibleDevice(SkBitmap::Config config, - int width, int height, - bool isOpaque); -#endif - /** * Create a new surface matching the specified info, one that attempts to * be maximally compatible when used with this canvas. diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp index a14bb63e5d..20662d9af0 100644 --- a/src/core/SkCanvas.cpp +++ b/src/core/SkCanvas.cpp @@ -851,14 +851,6 @@ static SkBaseDevice* createCompatibleDevice(SkCanvas* canvas, } } -#ifdef SK_SUPPORT_LEGACY_CANVAS_CREATECOMPATIBLEDEVICE -SkBaseDevice* SkCanvas::createCompatibleDevice(SkBitmap::Config config, - int width, int height, - bool isOpaque) { - return createCompatibleDevice(this, config, width, height, isOpaque); -} -#endif - int SkCanvas::internalSaveLayer(const SkRect* bounds, const SkPaint* paint, SaveFlags flags, bool justForImageFilter) { // do this before we create the layer. We don't call the public save() since |