diff options
author | John Reck <jreck@google.com> | 2015-04-15 15:52:10 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2015-04-15 15:56:12 -0700 |
commit | 4bd981ec533a65e8dee053a0a709b484770b0a76 (patch) | |
tree | c9563c173961c03ed25fceec3aace0373212c31c /libs/hwui/ResourceCache.h | |
parent | 87ffb63d90fb6dd2689fe72dcb24fda9a6156220 (diff) | |
download | frameworks_base-4bd981ec533a65e8dee053a0a709b484770b0a76.zip frameworks_base-4bd981ec533a65e8dee053a0a709b484770b0a76.tar.gz frameworks_base-4bd981ec533a65e8dee053a0a709b484770b0a76.tar.bz2 |
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 fae55d1..6c483fa 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); |