From 7c103a36f60b690e3fe83c40210e1cb0c76bba43 Mon Sep 17 00:00:00 2001 From: John Reck Date: Wed, 15 Apr 2015 15:52:10 -0700 Subject: Remove Bitmap#getSkBitmap Change-Id: Ifb9047b426122d3e5a445eb7a0eb3fce38dedf27 --- libs/hwui/ResourceCache.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libs/hwui/ResourceCache.h') 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); -- cgit v1.2.3-59-g8ed1b