diff options
author | 2015-09-10 14:33:38 -0700 | |
---|---|---|
committer | 2015-09-10 14:33:38 -0700 | |
commit | 85d9178832f4a64c9d80ffb14cb9dab4fe0fa54a (patch) | |
tree | 809af195b135b0118ce2e6b9f060bdf2f5dfbfbc /src/gpu/SkGrPriv.h | |
parent | e70afc9f48d00828ee6b707899a8ff542b0e8b98 (diff) |
Use SkImageCacherator in SkImages
Possible follow-up changes to consider
1. Roll SkImage_Raster and _Gpu into _Generator, where the generator (or cacherator) is backed by a pre-existing texture or raster.
2. Evolve SkImageUsageType into a verb requiring stretching, and have the caller (common code) digest the caps() and usage, so that subclasses are just told what to do (stretch or not)
3. Common code/utility to convert an unstretched texture into a stretch one (and cache it) if the generator can only make an unstretched one.
BUG=skia:
Review URL: https://codereview.chromium.org/1282363002
Diffstat (limited to 'src/gpu/SkGrPriv.h')
-rw-r--r-- | src/gpu/SkGrPriv.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gpu/SkGrPriv.h b/src/gpu/SkGrPriv.h index 4688adb045..5cf4dd24d6 100644 --- a/src/gpu/SkGrPriv.h +++ b/src/gpu/SkGrPriv.h @@ -25,8 +25,7 @@ class GrUniqueKey; * * Note: width/height must fit in 16bits for this impl. */ -void GrMakeKeyFromImageID(GrUniqueKey* key, uint32_t imageID, - U16CPU width, U16CPU height, SkIPoint origin, +void GrMakeKeyFromImageID(GrUniqueKey* key, uint32_t imageID, const SkIRect& imageBounds, const GrCaps&, SkImageUsageType); #endif |