aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/SkGrPriv.h
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-09-10 14:33:38 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-09-10 14:33:38 -0700
commit85d9178832f4a64c9d80ffb14cb9dab4fe0fa54a (patch)
tree809af195b135b0118ce2e6b9f060bdf2f5dfbfbc /src/gpu/SkGrPriv.h
parente70afc9f48d00828ee6b707899a8ff542b0e8b98 (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.h3
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