Index: src/gpu/GrTexturePriv.h |
diff --git a/src/gpu/GrTexturePriv.h b/src/gpu/GrTexturePriv.h |
index 9a3e0e215bfe0e2c447cd55bb030ccfbf48d133b..a2da946987f5700a369fe555e6e94aeb94e0f42b 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, |