Index: tests/GpuDrawPathTest.cpp |
diff --git a/tests/GpuDrawPathTest.cpp b/tests/GpuDrawPathTest.cpp |
index 1f9361ad1e809a196e084bce7cdc7b3eb8a5b842..bab6d3a89bef41ac006754f1b289ee6c78982fe1 100644 |
--- a/tests/GpuDrawPathTest.cpp |
+++ b/tests/GpuDrawPathTest.cpp |
@@ -80,9 +80,8 @@ DEF_GPUTEST_FOR_ALL_CONTEXTS(GpuDrawPath, reporter, context) { |
for (auto& test_func : { &test_drawPathEmpty, &test_drawSameRectOvals }) { |
for (auto& sampleCount : {0, 4, 16}) { |
SkImageInfo info = SkImageInfo::MakeN32Premul(255, 255); |
- SkAutoTUnref<SkSurface> surface( |
- SkSurface::NewRenderTarget(context, SkBudgeted::kNo, info, |
- sampleCount, nullptr)); |
+ auto surface( |
+ SkSurface::MakeRenderTarget(context, SkBudgeted::kNo, info, sampleCount, nullptr)); |
if (!surface) { |
continue; |
} |