Two (related) changes here:
authorbrianosman <brianosman@google.com>
Thu, 1 Dec 2016 21:18:16 +0000 (13:18 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 1 Dec 2016 21:18:16 +0000 (13:18 -0800)
commit1aeb78c5d978b35b256525b711edd942bce01444
treea8f9b8c490d29e5efe22307700fab6ffde9f5a76
parentf6878baba8c7cd347e185361bac2eabaef863bfa
Two (related) changes here:

1) Our older iOS devices failed our sRGB tests, due to precision issues
with alpha. At this point, we only test on iPadMini 4, and that appears
not to have any problems.

2) iOS devices still don't have the sRGB texture decode extension. But,
some clients have no interest in mixing legacy/color-correct rendering,
and would like to use sRGB on these devices. This GrContextOptions flag
enables sRGB support in those cases.

Adjust the test code to produce sRGB capable contexts on these devices,
but only for configs that have a color space. (See comment).

BUG=skia:4148

Committed: https://skia.googlesource.com/skia/+/9db12d2341f3f8722c8b90b11dd4cce138a8a64e
Review-Url: https://codereview.chromium.org/2539993002
include/gpu/GrContextOptions.h
src/gpu/gl/GrGLCaps.cpp
src/gpu/gl/GrGLCaps.h
src/gpu/gl/GrGLGpu.cpp
tests/SRGBMipMapTest.cpp
tools/flags/SkCommonFlagsConfig.cpp
tools/gpu/GrContextFactory.cpp
tools/gpu/GrContextFactory.h