Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Unified Diff: gm/image_pict.cpp

Issue 1744243002: Remove internal calls to SkImage::getTexture (Closed) Base URL: https://skia.googlesource.com/skia.git@budalias
Patch Set: Add getTexture() back to SkImage :( Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/drawbitmaprect.cpp ('k') | gyp/SampleApp.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « gm/drawbitmaprect.cpp ('k') | gyp/SampleApp.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698