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
This commit is contained in:
parent
bada64428a
commit
9f6a557548
@ -23,7 +23,6 @@
|
||||
#include "GrTexture.h"
|
||||
|
||||
class GrAutoScratchTexture;
|
||||
class GrCacheKey;
|
||||
class GrDrawState;
|
||||
class GrDrawTarget;
|
||||
class GrEffect;
|
||||
@ -137,12 +136,6 @@ public:
|
||||
const GrCacheData& cacheData,
|
||||
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.
|
||||
|
@ -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) {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user