Index: src/effects/SkColorCubeFilter.cpp |
diff --git a/src/effects/SkColorCubeFilter.cpp b/src/effects/SkColorCubeFilter.cpp |
index 3878e5fc197869dae8b1ec4accdbc7cd8283465d..253d2877596946a72899c83cc79648e7c3d0e0b2 100644 |
--- a/src/effects/SkColorCubeFilter.cpp |
+++ b/src/effects/SkColorCubeFilter.cpp |
@@ -351,11 +351,13 @@ bool SkColorCubeFilter::asFragmentProcessors(GrContext* context, |
desc.fHeight = fCache.cubeDimension() * fCache.cubeDimension(); |
desc.fConfig = kRGBA_8888_GrPixelConfig; |
- SkAutoTUnref<GrTexture> textureCube(context->findAndRefCachedTexture(key)); |
+ SkAutoTUnref<GrTexture> textureCube( |
+ context->textureProvider()->findAndRefTextureByUniqueKey(key)); |
if (!textureCube) { |
- textureCube.reset(context->createTexture(desc, true, fCubeData->data(), 0)); |
+ textureCube.reset(context->textureProvider()->createTexture( |
+ desc, true, fCubeData->data(), 0)); |
if (textureCube) { |
- context->addResourceToCache(key, textureCube); |
+ context->textureProvider()->assignUniqueKeyToTexture(key, textureCube); |
} |
} |