DescriptionUse 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:
Committed: https://skia.googlesource.com/skia/+/85d9178832f4a64c9d80ffb14cb9dab4fe0fa54a
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #Patch Set 4 : #Patch Set 5 : #Patch Set 6 : #Patch Set 7 : rebase #Patch Set 8 : now with mutex safeness #
Total comments: 2
Patch Set 9 : remove cruft #Patch Set 10 : rebase #Patch Set 11 : #Patch Set 12 : add GrYUVProvider #Patch Set 13 : rebase after GrYUVProvider landed separately #Patch Set 14 : #Patch Set 15 : add guard for Chrome #Patch Set 16 : fix no-gpu build #Patch Set 17 : #Patch Set 18 : #
Total comments: 10
Patch Set 19 : fix rob comments #
Messages
Total messages: 53 (24 generated)
|