aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-12-17 20:44:22 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-12-17 20:44:22 +0000
commit9f6a557548b4aec8aa0d3345488089b3d75f471c (patch)
tree33fce74a6449062c6e41868ec2e493b386f20ac2 /src/gpu
parentbada64428a52b4fc1f31a0a1982c2301ec57601c (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
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/GrContext.cpp5
-rw-r--r--src/gpu/GrResourceCache.h20
2 files changed, 0 insertions, 25 deletions
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 {