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

Unified Diff: src/core/SkImageCacherator.h

Issue 1370223002: Revert[4] of add ImageShader, sharing code with its Bitmap cousin (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 3 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/core/SkImageCacherator.h
diff --git a/src/core/SkImageCacherator.h b/src/core/SkImageCacherator.h
index 6812c72fccb092b1b0172d6f251f37cbc0bb0d19..c5c65498cc92ec4653345d63e1bc31562376b11f 100644
--- a/src/core/SkImageCacherator.h
+++ b/src/core/SkImageCacherator.h
@@ -58,6 +58,9 @@ private:
bool generateBitmap(SkBitmap*);
bool tryLockAsBitmap(SkBitmap*, const SkImage*);
+#if SK_SUPPORT_GPU
+ GrTexture* lockUnstretchedTexture(GrContext*, SkImageUsageType, const SkImage* client);
+#endif
class ScopedGenerator {
SkImageCacherator* fCacher;
@@ -78,6 +81,8 @@ private:
const SkImageInfo fInfo;
const SkIPoint fOrigin;
const uint32_t fUniqueID;
+
+ friend class Cacherator_GrTextureMaker;
};
#endif
« no previous file with comments | « gyp/core.gypi ('k') | src/core/SkImageCacherator.cpp » ('j') | src/gpu/SkGr.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698