Index: src/gpu/GrTexture.cpp |
diff --git a/src/gpu/GrTexture.cpp b/src/gpu/GrTexture.cpp |
index eb518f5635ae2095f7a816296a74da104cd73d70..378e9900f7cf805362d63b76c1fce0498772cb50 100644 |
--- a/src/gpu/GrTexture.cpp |
+++ b/src/gpu/GrTexture.cpp |
@@ -118,11 +118,11 @@ GrSurfaceOrigin resolve_origin(const GrSurfaceDesc& desc) { |
} |
////////////////////////////////////////////////////////////////////////////// |
-GrTexture::GrTexture(GrGpu* gpu, bool isWrapped, const GrSurfaceDesc& desc) |
- : INHERITED(gpu, isWrapped, desc) |
+GrTexture::GrTexture(GrGpu* gpu, LifeCycle lifeCycle, const GrSurfaceDesc& desc) |
+ : INHERITED(gpu, lifeCycle, desc) |
, fMipMapsStatus(kNotAllocated_MipMapsStatus) { |
- if (!isWrapped) { |
+ if (kCached_LifeCycle == lifeCycle) { |
GrScratchKey key; |
GrTexturePriv::ComputeScratchKey(desc, &key); |
this->setScratchKey(key); |