diff options
Diffstat (limited to 'src/core/SkBitmapProvider.h')
-rw-r--r-- | src/core/SkBitmapProvider.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/core/SkBitmapProvider.h b/src/core/SkBitmapProvider.h index f4904d4aa4..186f155ee6 100644 --- a/src/core/SkBitmapProvider.h +++ b/src/core/SkBitmapProvider.h @@ -13,20 +13,17 @@ class SkBitmapProvider { public: - explicit SkBitmapProvider(const SkImage* img, SkColorSpace* dstColorSpace) - : fImage(img) - , fDstColorSpace(dstColorSpace) { + explicit SkBitmapProvider(const SkImage* img) + : fImage(img) { SkASSERT(img); } SkBitmapProvider(const SkBitmapProvider& other) : fImage(other.fImage) - , fDstColorSpace(other.fDstColorSpace) {} int width() const; int height() const; uint32_t getID() const; - SkColorSpace* dstColorSpace() const { return fDstColorSpace; } SkImageInfo info() const; bool isVolatile() const; @@ -44,10 +41,9 @@ private: void* operator new(size_t) = delete; void* operator new(size_t, void*) = delete; - // SkBitmapProvider is always short-lived/stack allocated, and the source image and destination - // color space are guaranteed to outlive its scope => we can store raw ptrs to avoid ref churn. + // SkBitmapProvider is always short-lived/stack allocated, and the source image is guaranteed + // to outlive its scope => we can store a raw ptr to avoid ref churn. const SkImage* fImage; - SkColorSpace* fDstColorSpace; }; #endif |