From 7d139ba2c331f11e9b485753cc727a0ff202f2a4 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Fri, 2 Jul 2010 11:20:34 -0700 Subject: Remove extra leftover logs and use uint32_t instead of unsigned int. Change-Id: I944f82fe3255de38dc04048cc8bd861f578f01a7 --- libs/hwui/TextureCache.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libs/hwui/TextureCache.cpp') diff --git a/libs/hwui/TextureCache.cpp b/libs/hwui/TextureCache.cpp index 10e4f9e5df53..93ee138a373c 100644 --- a/libs/hwui/TextureCache.cpp +++ b/libs/hwui/TextureCache.cpp @@ -27,7 +27,7 @@ namespace uirenderer { // Constructors/destructor /////////////////////////////////////////////////////////////////////////////// -TextureCache::TextureCache(unsigned int maxByteSize): +TextureCache::TextureCache(uint32_t maxByteSize): mCache(GenerationCache::kUnlimitedCapacity), mSize(0), mMaxSize(maxByteSize) { mCache.setOnEntryRemovedListener(this); @@ -41,15 +41,15 @@ TextureCache::~TextureCache() { // Size management /////////////////////////////////////////////////////////////////////////////// -unsigned int TextureCache::getSize() { +uint32_t TextureCache::getSize() { return mSize; } -unsigned int TextureCache::getMaxSize() { +uint32_t TextureCache::getMaxSize() { return mMaxSize; } -void TextureCache::setMaxSize(unsigned int maxSize) { +void TextureCache::setMaxSize(uint32_t maxSize) { mMaxSize = maxSize; while (mSize > mMaxSize) { mCache.removeOldest(); @@ -62,7 +62,7 @@ void TextureCache::setMaxSize(unsigned int maxSize) { void TextureCache::operator()(SkBitmap* bitmap, Texture* texture) { if (bitmap) { - const unsigned int size = bitmap->rowBytes() * bitmap->height(); + const uint32_t size = bitmap->rowBytes() * bitmap->height(); mSize -= size; } @@ -79,7 +79,7 @@ void TextureCache::operator()(SkBitmap* bitmap, Texture* texture) { Texture* TextureCache::get(SkBitmap* bitmap) { Texture* texture = mCache.get(bitmap); if (!texture) { - const unsigned int size = bitmap->rowBytes() * bitmap->height(); + const uint32_t size = bitmap->rowBytes() * bitmap->height(); // Don't even try to cache a bitmap that's bigger than the cache if (size < mMaxSize) { while (mSize + size > mMaxSize) { -- cgit v1.2.3-59-g8ed1b