Index: tests/GrSurfaceTest.cpp |
diff --git a/tests/GrSurfaceTest.cpp b/tests/GrSurfaceTest.cpp |
index 094ca7829a4196175c6b11e2df6951dbfc2b8ed6..685bf4187461f352c6bdca227f0e78326393ff6e 100644 |
--- a/tests/GrSurfaceTest.cpp |
+++ b/tests/GrSurfaceTest.cpp |
@@ -27,7 +27,7 @@ DEF_GPUTEST(GrSurface, reporter, factory) { |
desc.fWidth = 256; |
desc.fHeight = 256; |
desc.fSampleCnt = 0; |
- GrSurface* texRT1 = context->createTexture(desc, false, NULL, 0); |
+ GrSurface* texRT1 = context->textureProvider()->createTexture(desc, false, NULL, 0); |
REPORTER_ASSERT(reporter, texRT1 == texRT1->asRenderTarget()); |
REPORTER_ASSERT(reporter, texRT1 == texRT1->asTexture()); |
@@ -39,7 +39,7 @@ DEF_GPUTEST(GrSurface, reporter, factory) { |
static_cast<GrSurface*>(texRT1->asTexture())); |
desc.fFlags = kNone_GrSurfaceFlags; |
- GrSurface* tex1 = context->createTexture(desc, false, NULL, 0); |
+ GrSurface* tex1 = context->textureProvider()->createTexture(desc, false, NULL, 0); |
REPORTER_ASSERT(reporter, NULL == tex1->asRenderTarget()); |
REPORTER_ASSERT(reporter, tex1 == tex1->asTexture()); |
REPORTER_ASSERT(reporter, static_cast<GrSurface*>(tex1) == tex1->asTexture()); |
@@ -51,7 +51,7 @@ DEF_GPUTEST(GrSurface, reporter, factory) { |
backendDesc.fHeight = 256; |
backendDesc.fSampleCnt = 0; |
backendDesc.fTextureHandle = 5; |
- GrSurface* texRT2 = context->wrapBackendTexture(backendDesc); |
+ GrSurface* texRT2 = context->textureProvider()->wrapBackendTexture(backendDesc); |
REPORTER_ASSERT(reporter, texRT2 == texRT2->asRenderTarget()); |
REPORTER_ASSERT(reporter, texRT2 == texRT2->asTexture()); |
REPORTER_ASSERT(reporter, static_cast<GrSurface*>(texRT2->asRenderTarget()) == |