diff options
author | bsalomon <bsalomon@google.com> | 2014-12-30 12:50:52 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-30 12:50:52 -0800 |
commit | 7775c85611c734a2af709b3a9c127939a4296c48 (patch) | |
tree | 5a9b50af9aec7b1b4a03d3162322c51a6eb6bfcc /src/gpu/GrTexturePriv.h | |
parent | be9588ade8e3dac0adc8e038c46de006ca21af48 (diff) |
Add a simpler key type for scratch resource keys.
BUG=skia:2889
Review URL: https://codereview.chromium.org/815833004
Diffstat (limited to 'src/gpu/GrTexturePriv.h')
-rw-r--r-- | src/gpu/GrTexturePriv.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gpu/GrTexturePriv.h b/src/gpu/GrTexturePriv.h index d6c2dc2bf8..c093a9bbc6 100644 --- a/src/gpu/GrTexturePriv.h +++ b/src/gpu/GrTexturePriv.h @@ -39,16 +39,11 @@ public: return GrTexture::kNotAllocated_MipMapsStatus != fTexture->fMipMapsStatus; } - static GrResourceKey::ResourceType ResourceType() { - static const GrResourceKey::ResourceType gType = GrResourceKey::GenerateResourceType(); - return gType; - } - static GrResourceKey ComputeKey(const GrGpu* gpu, const GrTextureParams* params, const GrSurfaceDesc& desc, const GrCacheID& cacheID); - static GrResourceKey ComputeScratchKey(const GrSurfaceDesc& desc); + static void ComputeScratchKey(const GrSurfaceDesc&, GrScratchKey*); static bool NeedsResizing(const GrResourceKey& key); static bool NeedsBilerp(const GrResourceKey& key); |