diff options
author | reed <reed@google.com> | 2015-09-24 00:50:58 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-24 00:50:58 -0700 |
commit | 7b6945bc4e639d7cc4a49b84d492690f8e865566 (patch) | |
tree | e566e960e63ebd15c29a6f39b33edbbc71e7c098 /gm/surface.cpp | |
parent | dd42e5c05ce2f5e6da9a055544849dd8ae4e6733 (diff) |
remove unused (by the outside) SkImage::newSurface, and simplify newImage -> newSubset
BUG=skia:
Review URL: https://codereview.chromium.org/1364443002
Diffstat (limited to 'gm/surface.cpp')
-rw-r--r-- | gm/surface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/surface.cpp b/gm/surface.cpp index bf7f931f46..8c7c118cce 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 |