Index: gm/surface.cpp |
diff --git a/gm/surface.cpp b/gm/surface.cpp |
index bf7f931f468240f6dca186a996bb8ab2504c5947..8c7c118cce04f735c0076bd426f4e3b02c3d9825 100644 |
--- a/gm/surface.cpp |
+++ b/gm/surface.cpp |
@@ -143,7 +143,7 @@ protected: |
SkAutoTUnref<SkImage> image(surf->newImageSnapshot()); |
canvas->drawImage(image, 10, 10, nullptr); |
- SkAutoTUnref<SkSurface> surf2(image->newSurface(info, nullptr)); |
+ SkAutoTUnref<SkSurface> surf2(surf->newSurface(info)); |
drawInto(surf2->getCanvas()); |
// Assert that the props were communicated transitively through the first image |