Descriptionmove colorshader into its own .cpp, add color4f variant
Implemented as a different subclass for SkColorShader (which is also private) partly to make the CL clearer/simpler, and partly for flatten/unflatten compatibility. Later I'm sure we could combine these if that proves useful.
Lots of TODOs at the moment, but still valuable to get reviewed.
Note: this ignores the question (for the moment) about how to interpret SkColor in the larger world. That needs to happen, but this CL is more focused on what *else* to do besides handle the old-style input (and old-style pipeline).
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1934313002
Committed: https://skia.googlesource.com/skia/+/0ccc62d4f79809fe20de299ba1fabdf2592ce2e5
Patch Set 1 #Patch Set 2 : add new subclass for color4f #Patch Set 3 : add new file #Patch Set 4 : add gm #Patch Set 5 : #Patch Set 6 : register for serialization, amend GM view for future picture expansion #
Messages
Total messages: 27 (16 generated)
|