Index: tests/GLProgramsTest.cpp |
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp |
index c12e5e8781db49acae0dab4d39c83bb5cff387da..1d7beecc759826a7a167f3aefecc2af21a2a436e 100644 |
--- a/tests/GLProgramsTest.cpp |
+++ b/tests/GLProgramsTest.cpp |
@@ -115,11 +115,11 @@ static GrRenderTarget* random_render_target(GrContext* context, SkRandom* random |
builder[0] = texDesc.fOrigin; |
builder.finish(); |
- GrTexture* texture = context->findAndRefCachedTexture(key); |
+ GrTexture* texture = context->textureProvider()->findAndRefTextureByUniqueKey(key); |
if (!texture) { |
- texture = context->createTexture(texDesc, true); |
+ texture = context->textureProvider()->createTexture(texDesc, true); |
if (texture) { |
- context->addResourceToCache(key, texture); |
+ context->textureProvider()->assignUniqueKeyToTexture(key, texture); |
} |
} |
return texture ? texture->asRenderTarget() : NULL; |