Index: tools/VisualBench/VisualBench.cpp |
diff --git a/tools/VisualBench/VisualBench.cpp b/tools/VisualBench/VisualBench.cpp |
index 69d47b6b0412f93b412b1e9c14ff8e1e77fb98b6..cbd1abe97bd8a26f840ce9ca5aa419eb439b1e16 100644 |
--- a/tools/VisualBench/VisualBench.cpp |
+++ b/tools/VisualBench/VisualBench.cpp |
@@ -78,7 +78,7 @@ void VisualBench::setTitle() { |
SkSurface* VisualBench::createSurface() { |
if (!fSurface) { |
SkSurfaceProps props(INHERITED::getSurfaceProps()); |
- fSurface.reset(SkSurface::NewRenderTargetDirect(fRenderTarget, &props)); |
+ fSurface.reset(SkSurface::MakeRenderTargetDirect(fRenderTarget, &props).release()); |
} |
// The caller will wrap the SkSurface in an SkAutoTUnref |