DescriptionsRGB support in Ganesh. Several pieces:
sRGB support now also requires GL_EXT_texture_sRGB_decode, which allows
us to disable sRGB -> Linear conversion when reading textures. This gives
us an easy way to support "legacy" L32 mode. We disable decoding based on
the pixel config of the render target. Textures can override that behavior
(specifically for format-conversion draws where we want that behavior).
Added sBGRA pixel config, which is not-really-a-format. It's just sRGBA
internally, and the external format is BGR order, so TexImage calls will
swizzle correctly. This lets us interact with sRGB raster surfaces on BGR
platforms.
Devices without sRGB support behave like they always have: conversion from
color type and profile type ignores sRGB and always returns linear pixel
configs.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1789663002
Committed: https://skia.googlesource.com/skia/+/a6359365887048ef055196de75591311d7a015f0
Patch Set 1 #Patch Set 2 : Ensure sBGRA is unsupported on ES 2.0. Fix CreateRenderTarget. #
Total comments: 7
Patch Set 3 : Pass GrCaps to pixel config conversion, suppress srgb there. #Patch Set 4 : Compile fix #Patch Set 5 : Fixed WritePixelsTest failures. Copy/paste error. #Patch Set 6 : Rebase #
Total comments: 2
Patch Set 7 : Remove GrSRGBPolicy, simplify bindTexture logic. #Patch Set 8 : Fix compile error on CPU bots. #Patch Set 9 : Fix more compile problems in non-GPU mode. #Patch Set 10 : Squelch clang warnings about GrPixelConfig < kGrPixelConfigCnt #
Total comments: 1
Patch Set 11 : Workaround for bug in clang warning. #
Total comments: 1
Patch Set 12 : Review feedback. #Patch Set 13 : Don't fail on non-8888 sRGB, just convert before uploading. Move gpu includes inside SUPPORT_GPU guards. #Patch Set 14 : Rebase #Patch Set 15 : Convert unsupported sRGB formats to 8888. #Patch Set 16 : Trick raster into using linear blitters. #Patch Set 17 : Rebase #Patch Set 18 : Squelch assert when blurring sRGB #
Messages
Total messages: 61 (29 generated)
|