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

Unified Diff: src/image/SkImage.cpp

Issue 1282363002: Use SkImageCacherator in SkImages (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: now with mutex safeness Created 5 years, 4 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
Index: src/image/SkImage.cpp
diff --git a/src/image/SkImage.cpp b/src/image/SkImage.cpp
index 715b4f4043a3a0febdb763367ebeab892b8d33b3..f0a2160a41949cf6a18a8c59262fbb4fe92f5c70 100644
--- a/src/image/SkImage.cpp
+++ b/src/image/SkImage.cpp
@@ -119,7 +119,7 @@ SkImage* SkImage::newImage(int newWidth, int newHeight, const SkIRect* subset,
#if SK_SUPPORT_GPU
GrTexture* SkImage::getTexture() const {
- return as_IB(this)->getTexture();
+ return as_IB(this)->peekTexture();
}
bool SkImage::isTextureBacked() const { return SkToBool(as_IB(this)->getTexture()); }

Powered by Google App Engine
This is Rietveld 408576698