| Index: gm/dftext.cpp
|
| diff --git a/gm/dftext.cpp b/gm/dftext.cpp
|
| index cccca3863d5938049078944796be4e32eb973ea1..545911c26c065c493f948b41cc31521a6807a439 100644
|
| --- a/gm/dftext.cpp
|
| +++ b/gm/dftext.cpp
|
| @@ -201,9 +201,7 @@ protected:
|
| SkAutoCanvasRestore acr(inputCanvas, true);
|
| // since we prepended this matrix already, we blit using identity
|
| inputCanvas->resetMatrix();
|
| - SkImage* image = surface->newImageSnapshot();
|
| - inputCanvas->drawImage(image, 0, 0, nullptr);
|
| - image->unref();
|
| + inputCanvas->drawImage(surface->makeImageSnapshot().get(), 0, 0, nullptr);
|
| }
|
| #endif
|
| }
|
|
|