diff options
| author | 2010-07-02 11:20:34 -0700 | |
|---|---|---|
| committer | 2010-07-02 11:20:34 -0700 | |
| commit | 7d139ba2c331f11e9b485753cc727a0ff202f2a4 (patch) | |
| tree | 7d61a0d1cacc78c0d3053d31d85c13a5aa3e3326 /libs/hwui/GenerationCache.h | |
| parent | d73ddd2c9d459e363c07a8f5e47995b52b4ae049 (diff) | |
Remove extra leftover logs and use uint32_t instead of unsigned int.
Change-Id: I944f82fe3255de38dc04048cc8bd861f578f01a7
Diffstat (limited to 'libs/hwui/GenerationCache.h')
| -rw-r--r-- | libs/hwui/GenerationCache.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/hwui/GenerationCache.h b/libs/hwui/GenerationCache.h index e215dafd8f55..56693dac736e 100644 --- a/libs/hwui/GenerationCache.h +++ b/libs/hwui/GenerationCache.h @@ -33,7 +33,7 @@ public: template<typename K, typename V> class GenerationCache { public: - GenerationCache(unsigned int maxCapacity): mMaxCapacity(maxCapacity), mListener(NULL) { }; + GenerationCache(uint32_t maxCapacity): mMaxCapacity(maxCapacity), mListener(NULL) { }; ~GenerationCache() { clear(); }; enum Capacity { @@ -50,7 +50,7 @@ public: V* remove(K* key); void removeOldest(); - unsigned int size() const; + uint32_t size() const; private: template<typename EntryKey, typename EntryValue> @@ -72,7 +72,7 @@ private: void attachToCache(sp<Entry<K*, V*> > entry); void detachFromCache(sp<Entry<K*, V*> > entry); - unsigned int mMaxCapacity; + uint32_t mMaxCapacity; OnEntryRemoved<K*, V*>* mListener; @@ -83,7 +83,7 @@ private: }; // class GenerationCache template<typename K, typename V> -unsigned int GenerationCache<K, V>::size() const { +uint32_t GenerationCache<K, V>::size() const { return mCache.size(); } |