Index: src/gpu/effects/GrTextureStripAtlas.cpp |
diff --git a/src/gpu/effects/GrTextureStripAtlas.cpp b/src/gpu/effects/GrTextureStripAtlas.cpp |
index 880a739525025c515c47a9b7f3be577948e433cf..230558684409a0afdc65b8939c18ddee9920c40d 100644 |
--- a/src/gpu/effects/GrTextureStripAtlas.cpp |
+++ b/src/gpu/effects/GrTextureStripAtlas.cpp |
@@ -190,6 +190,7 @@ |
} |
void GrTextureStripAtlas::lockTexture() { |
+ GrTextureParams params; |
GrSurfaceDesc texDesc; |
texDesc.fWidth = fDesc.fWidth; |
texDesc.fHeight = fDesc.fHeight; |
@@ -201,10 +202,9 @@ |
builder[0] = static_cast<uint32_t>(fCacheKey); |
builder.finish(); |
- fTexture = fDesc.fContext->findAndRefCachedTexture(key); |
+ fTexture = fDesc.fContext->findAndRefTexture(texDesc, key, ¶ms); |
if (NULL == fTexture) { |
- fTexture = fDesc.fContext->createTexture(texDesc, NULL, 0); |
- SkAssertResult(fDesc.fContext->addResourceToCache(key, fTexture)); |
+ fTexture = fDesc.fContext->createTexture(¶ms, texDesc, key, NULL, 0); |
// This is a new texture, so all of our cache info is now invalid |
this->initLRU(); |
fKeyTable.rewind(); |