aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrTexturePriv.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-10-08 08:40:09 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-08 08:40:09 -0700
commitbcf0a52d4f4221b158e68a06ba0c4cc4db011060 (patch)
tree6ad69163908f2fa15a6f857b16c1df7c12216ed1 /src/gpu/GrTexturePriv.h
parentb82b9d577e9d811d88de89594bbd6e697892616c (diff)
GrResourceCache2 manages scratch texture.
Diffstat (limited to 'src/gpu/GrTexturePriv.h')
-rw-r--r--src/gpu/GrTexturePriv.h5
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,