aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/image_pict.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-02-29 11:41:52 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-29 11:41:52 -0800
commit84a4e5a8d683bf17d6c3058b977b9dfb000428af (patch)
tree2d1a39c9baee537c1457f03ea1c51d5a911c2432 /gm/image_pict.cpp
parent3a9be690772f0417df2abe318c71e9b2fec0f8c5 (diff)
Remove internal calls to SkImage::getTexture
Diffstat (limited to 'gm/image_pict.cpp')
-rw-r--r--gm/image_pict.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/image_pict.cpp b/gm/image_pict.cpp
index 968ecda398..52c9309bc8 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 {