| Index: gm/imagealphathreshold.cpp
|
| diff --git a/gm/imagealphathreshold.cpp b/gm/imagealphathreshold.cpp
|
| index ea7185be1dbb8747d8cadcd9109f8ef3a602ed38..eafc32f8d62706aea64d7b26b4ce9b1960c52a75 100644
|
| --- a/gm/imagealphathreshold.cpp
|
| +++ b/gm/imagealphathreshold.cpp
|
| @@ -102,10 +102,9 @@ protected:
|
| surface->getCanvas()->clear(SK_ColorWHITE);
|
| draw_rects(surface->getCanvas());
|
|
|
| - SkAutoTUnref<SkImage> image(surface->newImageSnapshot());
|
| SkPaint paint = create_filter_paint();
|
| canvas->clipRect(SkRect::MakeLTRB(100, 100, WIDTH - 100, HEIGHT - 100));
|
| - canvas->drawImage(image, 0, 0, &paint);
|
| + canvas->drawImage(surface->makeImageSnapshot().get(), 0, 0, &paint);
|
| }
|
|
|
| private:
|
|
|