diff options
author | bsalomon <bsalomon@google.com> | 2014-10-08 08:40:09 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-08 08:40:09 -0700 |
commit | bcf0a52d4f4221b158e68a06ba0c4cc4db011060 (patch) | |
tree | 6ad69163908f2fa15a6f857b16c1df7c12216ed1 /src/gpu/GrTexturePriv.h | |
parent | b82b9d577e9d811d88de89594bbd6e697892616c (diff) |
GrResourceCache2 manages scratch texture.
BUG=skia:2889
Review URL: https://codereview.chromium.org/608883003
Diffstat (limited to 'src/gpu/GrTexturePriv.h')
-rw-r--r-- | src/gpu/GrTexturePriv.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/GrTexturePriv.h b/src/gpu/GrTexturePriv.h index 9a3e0e215b..a2da946987 100644 --- a/src/gpu/GrTexturePriv.h +++ b/src/gpu/GrTexturePriv.h @@ -39,6 +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 GrTextureDesc& desc, |