| Index: tools/skhello.cpp
|
| diff --git a/tools/skhello.cpp b/tools/skhello.cpp
|
| index f7d5b9a00efd1c9f6bf02ca41e2263fa16e20a1f..d1fb96e0ebb0753d54c070e87a553fab4503a704 100644
|
| --- a/tools/skhello.cpp
|
| +++ b/tools/skhello.cpp
|
| @@ -38,8 +38,8 @@ static bool do_surface(int w, int h, const char path[], const char text[],
|
| doDraw(surface->getCanvas(), paint, text);
|
|
|
| sk_sp<SkImage> image(surface->makeImageSnapshot());
|
| - SkAutoDataUnref data(image->encode());
|
| - if (nullptr == data.get()) {
|
| + sk_sp<SkData> data(image->encode());
|
| + if (!data) {
|
| return false;
|
| }
|
| SkFILEWStream stream(path);
|
|
|