Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(347)

Issue 2539993002: Enable sRGB on iOS, make sRGB decode support optional (Closed)

Created:
4 years ago by Brian Osman
Modified:
4 years ago
Reviewers:
bsalomon
CC:
Chinmay, reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

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 Committed: https://skia.googlesource.com/skia/+/1aeb78c5d978b35b256525b711edd942bce01444 Committed: https://skia.googlesource.com/skia/+/20471894eaa441193d5ae8f2395e8244c91c55af

Patch Set 1 #

Patch Set 2 : Remove decode requirement #

Patch Set 3 : Add context option #

Patch Set 4 : Skip SRGB mip test #

Patch Set 5 : Better comment #

Patch Set 6 : Remove testing hacks #

Total comments: 2

Patch Set 7 : Rename flag, pass context options, add comment #

Patch Set 8 : Fix testing behavior wrt sRGB Decode #

Patch Set 9 : Force to highp for testing #

Patch Set 10 : highp by default #

Patch Set 11 : Blacklist NexusPlayer (x86 PowerVR) #

Patch Set 12 : Don't allow sRGBA on ES BGRA devices #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -16 lines) Patch
M include/gpu/GrContextOptions.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +8 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLCaps.h View 1 2 3 4 5 6 3 chunks +5 lines, -1 line 0 comments Download
M src/gpu/gl/GrGLCaps.cpp View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +29 lines, -7 lines 0 comments Download
M src/gpu/gl/GrGLGpu.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M tests/SRGBMipMapTest.cpp View 1 2 3 4 5 6 2 chunks +13 lines, -2 lines 0 comments Download
M tools/flags/SkCommonFlagsConfig.cpp View 1 2 3 4 5 6 7 1 chunk +11 lines, -0 lines 0 comments Download
M tools/gpu/GrContextFactory.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -4 lines 0 comments Download
M tools/gpu/GrContextFactory.cpp View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (27 generated)
Brian Osman
4 years ago (2016-11-30 16:53:13 UTC) #4
bsalomon
I know "SRGBDecodeSupport" comes from the GL language but I find it confusing because what ...
4 years ago (2016-11-30 17:00:22 UTC) #5
Brian Osman
Fixed some issues, modified testing logic so we'll get sRGB testing on any device that ...
4 years ago (2016-11-30 19:31:30 UTC) #7
bsalomon
lgtm
4 years ago (2016-11-30 22:19:42 UTC) #11
Brian Osman
Okay, fixing the logic to blacklist NexusPlayer - that device is still failing the test, ...
4 years ago (2016-12-01 16:20:57 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2539993002/200001
4 years ago (2016-12-01 17:00:59 UTC) #19
bsalomon
lgtm
4 years ago (2016-12-01 17:01:20 UTC) #20
commit-bot: I haz the power
Committed patchset #11 (id:200001) as https://skia.googlesource.com/skia/+/9db12d2341f3f8722c8b90b11dd4cce138a8a64e
4 years ago (2016-12-01 17:02:08 UTC) #23
Brian Osman
A revert of this CL (patchset #11 id:200001) has been created in https://codereview.chromium.org/2547603002/ by brianosman@google.com. ...
4 years ago (2016-12-01 18:41:47 UTC) #24
Brian Osman
PS12 re-disables sRGB on ES/BGRA
4 years ago (2016-12-01 20:51:33 UTC) #28
bsalomon
lgtm
4 years ago (2016-12-01 20:53:53 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2539993002/220001
4 years ago (2016-12-01 21:17:20 UTC) #33
commit-bot: I haz the power
Committed patchset #12 (id:220001) as https://skia.googlesource.com/skia/+/1aeb78c5d978b35b256525b711edd942bce01444
4 years ago (2016-12-01 21:18:20 UTC) #36
Brian Osman
A revert of this CL (patchset #12 id:220001) has been created in https://codereview.chromium.org/2546783005/ by brianosman@google.com. ...
4 years ago (2016-12-01 21:59:15 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2539993002/220001
4 years ago (2016-12-02 14:33:14 UTC) #40
commit-bot: I haz the power
4 years ago (2016-12-02 14:43:37 UTC) #43
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://skia.googlesource.com/skia/+/20471894eaa441193d5ae8f2395e8244c91c55af

Powered by Google App Engine
This is Rietveld 408576698