diff options
-rw-r--r-- | src/core/SkBitmapCache.cpp | 2 | ||||
-rw-r--r-- | src/core/SkScaledImageCache.h | 7 |
2 files changed, 3 insertions, 6 deletions
diff --git a/src/core/SkBitmapCache.cpp b/src/core/SkBitmapCache.cpp index de52b63b5e..1713fe4c50 100644 --- a/src/core/SkBitmapCache.cpp +++ b/src/core/SkBitmapCache.cpp @@ -32,7 +32,7 @@ public: { this->init(sizeof(fGenID) + sizeof(fScaleX) + sizeof(fScaleY) + sizeof(fBounds)); } - + uint32_t fGenID; SkScalar fScaleX; SkScalar fScaleY; diff --git a/src/core/SkScaledImageCache.h b/src/core/SkScaledImageCache.h index 3f44e26f3d..9eea55079b 100644 --- a/src/core/SkScaledImageCache.h +++ b/src/core/SkScaledImageCache.h @@ -75,10 +75,10 @@ public: static ID* FindAndLock(const Key&, SkBitmap* result); static ID* AddAndLock(const Key&, const SkBitmap& result); - + static ID* FindAndLock(const Key&, const SkMipMap** result); static ID* AddAndLock(const Key&, const SkMipMap* result); - + static void Unlock(ID*); static size_t GetTotalBytesUsed(); @@ -128,9 +128,6 @@ public: * To add a new bitmap (or mipMap) to the cache, call * AddAndLock. Use the returned ptr to unlock the cache when you * are done using scaled. - * - * Use (generationID, width, and height) or (original, scaleX, - * scaleY) or (original) as a search key */ ID* addAndLock(const Key&, const SkBitmap& bitmap); ID* addAndLock(const Key&, const SkMipMap* mipMap); |