diff options
author | qiankun.miao <qiankun.miao@intel.com> | 2014-08-25 06:08:25 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-25 06:08:25 -0700 |
commit | 045bb7f00b217e7726d517acf783c661bd6f639e (patch) | |
tree | 078e5efcbf57a353af6bdf47991d3a3a76bb7d55 | |
parent | 66ff5f85c6de3347b635c463273966329589b085 (diff) |
Clean up useless comments in SkScaledImageCache.h
BUG=skia:
R=reed@google.com
Author: qiankun.miao@intel.com
Review URL: https://codereview.chromium.org/499203002
-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); |