remove unneeded SK_SUPPORT_LEGACY_CANVAS_CREATECOMPATIBLEDEVICE

git-svn-id: http://skia.googlecode.com/svn/trunk@13363 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2014-02-07 16:09:26 +00:00
parent 20c4ebe9bf
commit 5d54c29c70
2 changed files with 0 additions and 20 deletions

View File

@ -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.

View File

@ -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