| Index: include/core/SkDevice.h
|
| diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h
|
| index f55354bf0d2b52e7951abca58fcbb54d23519f16..e74e95f2f32c4fef7836659e9f2317c94e87f520 100644
|
| --- a/include/core/SkDevice.h
|
| +++ b/include/core/SkDevice.h
|
| @@ -12,7 +12,6 @@
|
| #include "SkBitmap.h"
|
| #include "SkCanvas.h"
|
| #include "SkColor.h"
|
| -#include "SkDeviceProperties.h"
|
| #include "SkImageFilter.h"
|
|
|
| class SkClipStack;
|
| @@ -21,7 +20,7 @@ struct SkIRect;
|
| class SkMatrix;
|
| class SkMetaData;
|
| class SkRegion;
|
| -
|
| +struct SkDeviceProperties;
|
| class GrRenderTarget;
|
|
|
| class SK_API SkBaseDevice : public SkRefCnt {
|
| @@ -32,24 +31,12 @@ public:
|
| * Construct a new device.
|
| */
|
| SkBaseDevice();
|
| -
|
| - /**
|
| - * Construct a new device.
|
| - */
|
| - SkBaseDevice(const SkDeviceProperties& deviceProperties);
|
| -
|
| virtual ~SkBaseDevice();
|
|
|
| SkBaseDevice* createCompatibleDevice(const SkImageInfo&);
|
|
|
| SkMetaData& getMetaData();
|
|
|
| - /** Return the image properties of the device. */
|
| - virtual const SkDeviceProperties& getDeviceProperties() const {
|
| - //Currently, all the properties are leaky.
|
| - return fLeakyProperties;
|
| - }
|
| -
|
| /**
|
| * Return ImageInfo for this device. If the canvas is not backed by pixels
|
| * (cpu or gpu), then the info's ColorType will be kUnknown_SkColorType.
|
| @@ -333,7 +320,9 @@ protected:
|
| * If the device does handle a property, that property should be set to the identity value
|
| * for that property, effectively making it non-leaky.
|
| */
|
| - SkDeviceProperties fLeakyProperties;
|
| + const SkDeviceProperties& getLeakyProperties() const {
|
| + return *fLeakyProperties;
|
| + }
|
|
|
| /**
|
| * PRIVATE / EXPERIMENTAL -- do not call
|
| @@ -390,6 +379,7 @@ private:
|
|
|
| SkIPoint fOrigin;
|
| SkMetaData* fMetaData;
|
| + SkDeviceProperties* fLeakyProperties; // will always exist.
|
|
|
| #ifdef SK_DEBUG
|
| bool fAttachedToCanvas;
|
|
|