Index: tests/WritePixelsTest.cpp |
diff --git a/tests/WritePixelsTest.cpp b/tests/WritePixelsTest.cpp |
index 86effad36486c6a669b4123255d29fce74ebd796..2d24a77f35b7104b8000c1826752b1d3012212a8 100644 |
--- a/tests/WritePixelsTest.cpp |
+++ b/tests/WritePixelsTest.cpp |
@@ -319,8 +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->refScratchTexture(desc, GrContext::kExact_ScratchTexMatch)); |
+ SkAutoTUnref<GrTexture> texture(grCtx->createTexture(desc, false)); |
return SkSurface::NewRenderTargetDirect(texture->asRenderTarget()); |
#endif |
} |