Index: src/gpu/GrGpuResource.cpp |
diff --git a/src/gpu/GrGpuResource.cpp b/src/gpu/GrGpuResource.cpp |
index dbf5d8c2bbe18830e7f3b7133017906455240e39..d86ec7cafd1e6634ae676236dcc7c5f2a0236018 100644 |
--- a/src/gpu/GrGpuResource.cpp |
+++ b/src/gpu/GrGpuResource.cpp |
@@ -23,6 +23,7 @@ GrGpuResource::GrGpuResource(GrGpu* gpu, LifeCycle lifeCycle) |
, fGpuMemorySize(kInvalidGpuMemorySize) |
, fLifeCycle(lifeCycle) |
, fUniqueID(CreateUniqueID()) { |
+ SkDEBUGCODE(fCacheArrayIndex = -1); |
} |
void GrGpuResource::registerWithCache() { |