Index: example/HelloWorld.cpp |
diff --git a/example/HelloWorld.cpp b/example/HelloWorld.cpp |
index 817bbaa4633ec7e6bd0c9d1ef7950ed3f4ed38ce..bb29a0c3f53824f69e09085994e67ee33cd2a498 100644 |
--- a/example/HelloWorld.cpp |
+++ b/example/HelloWorld.cpp |
@@ -150,7 +150,7 @@ void HelloWorldWindow::draw(SkCanvas* canvas) { |
if (kRaster_DeviceType == fType) { |
// need to send the raster bits to the (gpu) window |
- sk_sp<SkImage> snap = sk_sp<SkImage>(fSurface->newImageSnapshot()); |
+ sk_sp<SkImage> snap = fSurface->makeImageSnapshot(); |
SkPixmap pmap; |
if (snap->peekPixels(&pmap)) { |
const SkImageInfo& info = pmap.info(); |