diff options
| author | 2015-04-15 15:52:10 -0700 | |
|---|---|---|
| committer | 2015-05-01 14:38:44 -0700 | |
| commit | 7c103a36f60b690e3fe83c40210e1cb0c76bba43 (patch) | |
| tree | 1928ebdea926aa00a9f4eb876bff708169fcad8e /libs/hwui/ResourceCache.h | |
| parent | c6e2e8ff474ae44bab5b9eb665851118abd27b68 (diff) | |
Remove Bitmap#getSkBitmap
Change-Id: Ifb9047b426122d3e5a445eb7a0eb3fce38dedf27
Diffstat (limited to 'libs/hwui/ResourceCache.h')
| -rw-r--r-- | libs/hwui/ResourceCache.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/hwui/ResourceCache.h b/libs/hwui/ResourceCache.h index fae55d14fead..6c483faf3508 100644 --- a/libs/hwui/ResourceCache.h +++ b/libs/hwui/ResourceCache.h @@ -53,11 +53,11 @@ public: class BitmapKey { public: - BitmapKey(const SkBitmap* bitmap) + BitmapKey(const SkBitmap& bitmap) : mRefCount(1) - , mBitmapDimensions(bitmap->dimensions()) - , mPixelRefOrigin(bitmap->pixelRefOrigin()) - , mPixelRefStableID(bitmap->pixelRef()->getStableID()) { } + , mBitmapDimensions(bitmap.dimensions()) + , mPixelRefOrigin(bitmap.pixelRefOrigin()) + , mPixelRefStableID(bitmap.pixelRef()->getStableID()) { } void operator=(const BitmapKey& other); bool operator==(const BitmapKey& other) const; @@ -101,7 +101,7 @@ public: * The cache stores a copy of the provided resource or refs an existing resource * if the bitmap has previously been inserted and returns the cached copy. */ - const SkBitmap* insert(const SkBitmap* resource); + const SkBitmap* insert(const SkBitmap& resource); void incrementRefcount(const Res_png_9patch* resource); |