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