Index: src/gpu/effects/GrTextureStripAtlas.cpp |
diff --git a/src/gpu/effects/GrTextureStripAtlas.cpp b/src/gpu/effects/GrTextureStripAtlas.cpp |
index 65096bf650329bae3bb9631caf70f1551e72dec5..8610691a43f04fa9f24facf28fe3bd036c1cc001 100644 |
--- a/src/gpu/effects/GrTextureStripAtlas.cpp |
+++ b/src/gpu/effects/GrTextureStripAtlas.cpp |
@@ -204,13 +204,13 @@ void GrTextureStripAtlas::lockTexture() { |
builder[0] = static_cast<uint32_t>(fCacheKey); |
builder.finish(); |
- fTexture = fDesc.fContext->findAndRefCachedTexture(key); |
+ fTexture = fDesc.fContext->textureProvider()->findAndRefTextureByUniqueKey(key); |
if (NULL == fTexture) { |
- fTexture = fDesc.fContext->createTexture(texDesc, true, NULL, 0); |
+ fTexture = fDesc.fContext->textureProvider()->createTexture(texDesc, true, NULL, 0); |
if (!fTexture) { |
return; |
} |
- fDesc.fContext->addResourceToCache(key, fTexture); |
+ fDesc.fContext->textureProvider()->assignUniqueKeyToTexture(key, fTexture); |
// This is a new texture, so all of our cache info is now invalid |
this->initLRU(); |
fKeyTable.rewind(); |