DescriptionChange SkSpecialImage::makeSurface and makeTightSurface to take output
properties (color space), bounds, and (optional) alphaType.
We were being pretty inconsistent before. Raster was honoring all
components of the info. GPU was using the supplied color type, but
propagating the source's color space. All call sites were saying N32.
What we want to do is propagate the original device's color space, and
pick a good format from that. Rather than force all the clients to
jump through hoops constructing an SkImageInfo that meets our criteria,
just have them supply the few bits we care about, and do everything else
internally.
This also lets us always use RGBA on GPU, but N32 on raster.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2349373004
Committed: https://skia.googlesource.com/skia/+/53c38087949252d27cde668368a3eeb59cc2eb00
Committed: https://skia.googlesource.com/skia/+/eed6b0e1d865a1f93143c09961debba0aca592ca
Patch Set 1 #
Total comments: 1
Patch Set 2 : Add OutputProperties to makeSurface #Patch Set 3 : Fix makeTightSurface, too #Patch Set 4 : Fixes for displacment, raster, etc... #Patch Set 5 : Paint fixes #Patch Set 6 : Rebase #Patch Set 7 : Rebase #Patch Set 8 : Remove include, upstream #
Total comments: 4
Patch Set 9 : Remove copy-pasted default parameter, expand comment #
Messages
Total messages: 24 (13 generated)
|