Index: platform_tools/android/apps/canvasproof/src/main/jni/org_skia_canvasproof_GaneshPictureRenderer.cpp |
diff --git a/platform_tools/android/apps/canvasproof/src/main/jni/org_skia_canvasproof_GaneshPictureRenderer.cpp b/platform_tools/android/apps/canvasproof/src/main/jni/org_skia_canvasproof_GaneshPictureRenderer.cpp |
index d1de529674104e39e6853e53c9d50c6e50e2ac84..de38919fe5d313c2ecc7eca0d5c662d6eecff344 100644 |
--- a/platform_tools/android/apps/canvasproof/src/main/jni/org_skia_canvasproof_GaneshPictureRenderer.cpp |
+++ b/platform_tools/android/apps/canvasproof/src/main/jni/org_skia_canvasproof_GaneshPictureRenderer.cpp |
@@ -37,9 +37,8 @@ static void render_picture(GrContext* grContext, |
SkSurfaceProps surfaceProps(SkSurfaceProps::kUseDeviceIndependentFonts_Flag, |
kUnknown_SkPixelGeometry); |
// TODO: Check to see if we can keep the surface between draw calls. |
- SkAutoTUnref<SkSurface> surface( |
- SkSurface::NewFromBackendRenderTarget( |
- grContext, desc, &surfaceProps)); |
+ sk_sp<SkSurface> surface( |
+ SkSurface::MakeFromBackendRenderTarget(grContext, desc, nullptr, &surfaceProps)); |
if (surface) { |
SkCanvas* canvas = surface->getCanvas(); |
SkASSERT(canvas); |