Progress on gamma-correctness in the GPU backend. Fixed conversion of color and profi...
authorbrianosman <brianosman@google.com>
Tue, 1 Mar 2016 20:53:06 +0000 (12:53 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 1 Mar 2016 20:53:06 +0000 (12:53 -0800)
commita6f58194733c1c50e4fe5f98585e42344f29b6f0
tree788d199ef37b8596e5be52bb94b32208282afbc9
parent4bc31815ba1aa42ea13c5637c6b52262422b7bdb
Progress on gamma-correctness in the GPU backend. Fixed conversion of color and profile type to pixel config, which makes many things "just work".

Added (color=8888|f16|srgb) option to gpu configurations, along with gpuf16, gpusrgb, and anglesrgb predefined configs. Runs the gpu backend in gamma-correct mode (with either FP16 linear or sRGB 8888 frambuffers).

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1750383002

Review URL: https://codereview.chromium.org/1750383002
dm/DM.cpp
dm/DMSrcSink.cpp
dm/DMSrcSink.h
src/gpu/SkGr.cpp
tests/TestConfigParsing.cpp
tools/flags/SkCommonFlagsConfig.cpp
tools/flags/SkCommonFlagsConfig.h