diff options
-rw-r--r-- | include/core/SkDevice.h | 6 | ||||
-rw-r--r-- | src/core/SkDevice.cpp | 13 |
2 files changed, 2 insertions, 17 deletions
diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h index fa427c6a15..db5db6444c 100644 --- a/include/core/SkDevice.h +++ b/include/core/SkDevice.h @@ -20,7 +20,6 @@ class SkDrawFilter; class SkImageFilterCache; struct SkIRect; class SkMatrix; -class SkMetaData; class SkRasterHandleAllocator; class SkRegion; class SkSpecialImage; @@ -34,8 +33,6 @@ public: explicit SkBaseDevice(const SkImageInfo&, const SkSurfaceProps&); virtual ~SkBaseDevice(); - SkMetaData& getMetaData(); - /** * 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. @@ -368,8 +365,7 @@ private: const SkRect& dst, const SkPaint& paint, SkCanvas::SrcRectConstraint constraint); - SkIPoint fOrigin; - SkMetaData* fMetaData; + SkIPoint fOrigin; const SkImageInfo fInfo; const SkSurfaceProps fSurfaceProps; diff --git a/src/core/SkDevice.cpp b/src/core/SkDevice.cpp index ff99a09ccd..37a2535d7c 100644 --- a/src/core/SkDevice.cpp +++ b/src/core/SkDevice.cpp @@ -15,7 +15,6 @@ #include "SkImageFilterCache.h" #include "SkImagePriv.h" #include "SkLatticeIter.h" -#include "SkMetaData.h" #include "SkPatchUtils.h" #include "SkPathPriv.h" #include "SkPathMeasure.h" @@ -32,19 +31,9 @@ SkBaseDevice::SkBaseDevice(const SkImageInfo& info, const SkSurfaceProps& surfac , fSurfaceProps(surfaceProps) { fOrigin.setZero(); - fMetaData = nullptr; } -SkBaseDevice::~SkBaseDevice() { delete fMetaData; } - -SkMetaData& SkBaseDevice::getMetaData() { - // metadata users are rare, so we lazily allocate it. If that changes we - // can decide to just make it a field in the device (rather than a ptr) - if (nullptr == fMetaData) { - fMetaData = new SkMetaData; - } - return *fMetaData; -} +SkBaseDevice::~SkBaseDevice() {} #ifdef SK_SUPPORT_LEGACY_ACCESSBITMAP const SkBitmap& SkBaseDevice::accessBitmap(bool changePixels) { |