DescriptionCap color index values
In the provided example the color table has 10 entries but some of the pixels in the bitmap overflow. This CL goes through the pixel values and caps them to the max index.
An alternate approach would be to just have the color table always have 256 entries but zero out the unused ones.
BUG=492265
Committed: https://skia.googlesource.com/skia/+/28937843f49b3015e9f4c04e04eb2604c3f873cf
Patch Set 1 #
Messages
Total messages: 10 (4 generated)
|