DescriptionHandle gray alpha conversions in SkSwizzler
Nothing fancy here. By doing the entire conversion ourselves, we
only need to make one conversion pass over each row. Additionally,
we optimize the premultiply since we know each color component of
the pixel is identical.
This will also enable us to follow up with platform specific
optimizations.
PNG Decode Time Nexus 6P (for a test set of GrayAlpha encoded PNGs)
Regular Unpremul 0.95x
Zero Init Unpremul 0.94x
Regular Premul 0.91x
Zero Init Premul 0.90x
BUG=skia:4767
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1665583002
Committed: https://skia.googlesource.com/skia/+/93e613d6bdea05d96e232ed261d7bf886c91bb8e
Patch Set 1 #
Total comments: 8
Patch Set 2 : Response to comments #Patch Set 3 : Compile in Debug mode :) #
Depends on Patchset: Messages
Total messages: 17 (10 generated)
|