Index: tests/WritePixelsTest.cpp |
diff --git a/tests/WritePixelsTest.cpp b/tests/WritePixelsTest.cpp |
index 2d24a77f35b7104b8000c1826752b1d3012212a8..d1c328e6ecaf766b164e82779d6918c9d34a644a 100644 |
--- a/tests/WritePixelsTest.cpp |
+++ b/tests/WritePixelsTest.cpp |
@@ -319,7 +319,7 @@ static SkSurface* create_surface(const CanvasConfig& c, GrContext* grCtx) { |
desc.fConfig = kSkia8888_GrPixelConfig; |
desc.fOrigin = kGpu_TopLeft_DevType == c.fDevType ? |
kTopLeft_GrSurfaceOrigin : kBottomLeft_GrSurfaceOrigin; |
- SkAutoTUnref<GrTexture> texture(grCtx->createTexture(desc, false)); |
+ SkAutoTUnref<GrTexture> texture(grCtx->textureProvider()->createTexture(desc, false)); |
return SkSurface::NewRenderTargetDirect(texture->asRenderTarget()); |
#endif |
} |