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:
parent
20c4ebe9bf
commit
5d54c29c70
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user