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 de38919fe5d313c2ecc7eca0d5c662d6eecff344..d1de529674104e39e6853e53c9d50c6e50e2ac84 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,8 +37,9 @@ |
SkSurfaceProps surfaceProps(SkSurfaceProps::kUseDeviceIndependentFonts_Flag, |
kUnknown_SkPixelGeometry); |
// TODO: Check to see if we can keep the surface between draw calls. |
- sk_sp<SkSurface> surface( |
- SkSurface::MakeFromBackendRenderTarget(grContext, desc, nullptr, &surfaceProps)); |
+ SkAutoTUnref<SkSurface> surface( |
+ SkSurface::NewFromBackendRenderTarget( |
+ grContext, desc, &surfaceProps)); |
if (surface) { |
SkCanvas* canvas = surface->getCanvas(); |
SkASSERT(canvas); |