Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: include/lazy/SkLruImageCache.h

Issue 18612003: use typedef to name our ID type in SkImageCache (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/lazy/SkImageCache.h ('k') | include/lazy/SkPurgeableImageCache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/lazy/SkLruImageCache.h
diff --git a/include/lazy/SkLruImageCache.h b/include/lazy/SkLruImageCache.h
index f655230a9328783fcb1bdbe0ed0aa356d1ed6019..3e9d315095f570b6b2bda605f423dffaf1f26a46 100644
--- a/include/lazy/SkLruImageCache.h
+++ b/include/lazy/SkLruImageCache.h
@@ -25,7 +25,7 @@ public:
virtual ~SkLruImageCache();
#ifdef SK_DEBUG
- virtual MemoryStatus getMemoryStatus(intptr_t ID) const SK_OVERRIDE;
+ virtual MemoryStatus getMemoryStatus(ID) const SK_OVERRIDE;
virtual void purgeAllUnpinnedCaches() SK_OVERRIDE;
#endif
@@ -45,10 +45,10 @@ public:
*/
size_t getImageCacheUsed() const { return fRamUsed; }
- virtual void* allocAndPinCache(size_t bytes, intptr_t* ID) SK_OVERRIDE;
- virtual void* pinCache(intptr_t ID, SkImageCache::DataStatus*) SK_OVERRIDE;
- virtual void releaseCache(intptr_t ID) SK_OVERRIDE;
- virtual void throwAwayCache(intptr_t ID) SK_OVERRIDE;
+ virtual void* allocAndPinCache(size_t bytes, ID*) SK_OVERRIDE;
+ virtual void* pinCache(ID, SkImageCache::DataStatus*) SK_OVERRIDE;
+ virtual void releaseCache(ID) SK_OVERRIDE;
+ virtual void throwAwayCache(ID) SK_OVERRIDE;
private:
// Linked list of recently used. Head is the most recently used, and tail is the least.
@@ -67,7 +67,7 @@ private:
* Find the CachedPixels represented by ID, or NULL if not in the cache. Mutex must be locked
* before calling.
*/
- CachedPixels* findByID(intptr_t ID) const;
+ CachedPixels* findByID(ID) const;
/**
* If over budget, throw away pixels which are not currently in use until below budget or there
« no previous file with comments | « include/lazy/SkImageCache.h ('k') | include/lazy/SkPurgeableImageCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698