Fix the way of Alpha8 gainmap support in Skia.
- We don't need to recompute output colortype and colorspace here if the
codec info is kGray8.
- If we recompute output colortype here, the desired colortype may
change if hwui side change f16 colortype back to k32 one to match the
recyled bitmap's color type if necessary.
- for kGray8 color type, no need to recompute output colorspace since
color correction is not supported for kGray
Bug: b/271174821
Change-Id: Ic170b15ae5abc33a28c9301076cedb216d46dc81
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/697316
Commit-Queue: Nolan Scobie <nscobie@google.com>
Commit-Queue: Sally Qi <sallyqi@google.com>
Reviewed-by: Nolan Scobie <nscobie@google.com>
1 file changed