diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-17 20:44:22 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-17 20:44:22 +0000 |
commit | 9f6a557548b4aec8aa0d3345488089b3d75f471c (patch) | |
tree | 33fce74a6449062c6e41868ec2e493b386f20ac2 | |
parent | bada64428a52b4fc1f31a0a1982c2301ec57601c (diff) |
Remove unused type GrCacheKey
R=robertphillips@google.com
Review URL: https://codereview.appspot.com/6947074
git-svn-id: http://skia.googlecode.com/svn/trunk@6858 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | include/gpu/GrContext.h | 7 | ||||
-rw-r--r-- | src/gpu/GrContext.cpp | 5 | ||||
-rw-r--r-- | src/gpu/GrResourceCache.h | 20 |
3 files changed, 0 insertions, 32 deletions
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h index d6a91ebc8f..8f2ed62710 100644 --- a/include/gpu/GrContext.h +++ b/include/gpu/GrContext.h @@ -23,7 +23,6 @@ #include "GrTexture.h" class GrAutoScratchTexture; -class GrCacheKey; class GrDrawState; class GrDrawTarget; class GrEffect; @@ -138,12 +137,6 @@ public: void* srcData, size_t rowBytes); /** - * Look for a texture that matches 'key' in the cache. If not found, - * return NULL. - */ - GrTexture* findTexture(const GrCacheKey& key); - - /** * Search for an entry based on key and dimensions. If found, * return it. The return value will be NULL if not found. * diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp index c39ee75519..f688b7ab67 100644 --- a/src/gpu/GrContext.cpp +++ b/src/gpu/GrContext.cpp @@ -209,11 +209,6 @@ void convolve_gaussian(GrDrawTarget* target, } - -GrTexture* GrContext::findTexture(const GrCacheKey& key) { - return static_cast<GrTexture*>(fTextureCache->find(key.key())); -} - GrTexture* GrContext::findTexture(const GrTextureDesc& desc, const GrCacheData& cacheData, const GrTextureParams* params) { diff --git a/src/gpu/GrResourceCache.h b/src/gpu/GrResourceCache.h index 2541930efd..e1207a204b 100644 --- a/src/gpu/GrResourceCache.h +++ b/src/gpu/GrResourceCache.h @@ -119,26 +119,6 @@ private: }; -class GrCacheKey { -public: - GrCacheKey(const GrTextureDesc& desc, const GrResourceKey& key) - : fDesc(desc) - , fKey(key) { - } - - void set(const GrTextureDesc& desc, const GrResourceKey& key) { - fDesc = desc; - fKey = key; - } - - const GrTextureDesc& desc() const { return fDesc; } - const GrResourceKey& key() const { return fKey; } - -protected: - GrTextureDesc fDesc; - GrResourceKey fKey; -}; - /////////////////////////////////////////////////////////////////////////////// class GrResourceEntry { |