| Index: gm/image_pict.cpp
|
| diff --git a/gm/image_pict.cpp b/gm/image_pict.cpp
|
| index 968ecda3985d9d6e08adaa28697f911f95e21058..52c9309bc87de440fc546ee5909acd95dd333e50 100644
|
| --- a/gm/image_pict.cpp
|
| +++ b/gm/image_pict.cpp
|
| @@ -217,7 +217,7 @@ public:
|
| surface->getCanvas()->translate(-100, -100);
|
| surface->getCanvas()->drawPicture(pic);
|
| SkAutoTUnref<SkImage> image(surface->newImageSnapshot());
|
| - fTexture.reset(SkRef(image->getTexture()));
|
| + fTexture.reset(SkRef(as_IB(image)->peekTexture()));
|
| }
|
| protected:
|
| GrTexture* onGenerateTexture(GrContext* ctx, const SkIRect* subset) override {
|
|
|