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

Issue 2029373004: respect srgb gamma when building mips (Closed)

Created:
4 years, 6 months ago by reed1
Modified:
4 years, 6 months ago
Reviewers:
herb_g, msarett, Brian Osman
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

respect srgb gamma when building mips Proposed policy: - If the target is *legacy* (e.g. L32/PMColor) ignore gamma - If the target is S32/F16 respect gamma BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2029373004 Committed: https://skia.googlesource.com/skia/+/6644d9353f3f0c09914385fd762e073f98d54205

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : return correct colorspace on level's info #

Patch Set 4 : Need to know when we're in L32 compatibility mode !!!? #

Total comments: 7

Patch Set 5 : rebase w/ enum changed to SkSourceGammaTreatment #

Patch Set 6 : address comments from #4 #

Total comments: 2

Patch Set 7 : use correct gamma treatment from gpu #

Patch Set 8 : call the 'real' code for srgb conversions, update gm to set colorspace object #

Patch Set 9 : fix bench build problem #

Patch Set 10 : rebase #

Total comments: 9

Patch Set 11 : undo hacks to all_bitmap_configs #

Patch Set 12 : address comments from #10 #

Patch Set 13 : add new gm to test mips w/ and w/o compatibility to L32 behavior #

Patch Set 14 : fix warning #

Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -82 lines) Patch
M bench/MipMapBench.cpp View 1 2 3 4 5 6 7 8 3 chunks +13 lines, -8 lines 0 comments Download
M gm/gamma.cpp View 1 2 3 4 5 6 7 2 chunks +7 lines, -6 lines 0 comments Download
M gm/mipmap.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +49 lines, -0 lines 0 comments Download
M gm/showmiplevels.cpp View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M include/private/SkTemplates.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M src/core/SkBitmapCache.h View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M src/core/SkBitmapCache.cpp View 1 2 3 4 3 chunks +13 lines, -8 lines 0 comments Download
M src/core/SkBitmapController.h View 1 2 3 4 1 chunk +6 lines, -1 line 0 comments Download
M src/core/SkBitmapController.cpp View 1 2 3 4 4 chunks +10 lines, -5 lines 0 comments Download
M src/core/SkBitmapProcShader.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
M src/core/SkBitmapProcState.h View 1 2 3 4 3 chunks +11 lines, -6 lines 0 comments Download
M src/core/SkBitmapProcState.cpp View 1 2 3 4 2 chunks +7 lines, -3 lines 0 comments Download
M src/core/SkLightingShader.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
M src/core/SkMipMap.h View 1 2 3 4 5 6 7 8 9 3 chunks +11 lines, -5 lines 0 comments Download
M src/core/SkMipMap.cpp View 1 2 3 4 5 6 7 8 9 10 chunks +54 lines, -13 lines 0 comments Download
M src/core/SkPM4fPriv.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +49 lines, -0 lines 0 comments Download
M src/gpu/SkGr.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -7 lines 0 comments Download
M tests/MipMapTest.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -3 lines 0 comments Download
M tests/SkResourceCacheTest.cpp View 1 2 3 4 4 chunks +14 lines, -7 lines 0 comments Download

Messages

Total messages: 61 (26 generated)
reed1
I'm pretty sure I got the mode wrong in the gpu case ...
4 years, 6 months ago (2016-06-02 21:19:51 UTC) #3
reed1
TODO: need to report the "honest" ImageInfo/gamma in each layer (reflecting if we were asked ...
4 years, 6 months ago (2016-06-02 21:21:33 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2029373004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2029373004/20001
4 years, 6 months ago (2016-06-02 21:21:46 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-02 21:40:11 UTC) #9
reed1
Need help with the change to SkGr.cpp
4 years, 6 months ago (2016-06-03 15:55:15 UTC) #10
reed1
4 years, 6 months ago (2016-06-03 15:55:30 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2029373004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2029373004/60001
4 years, 6 months ago (2016-06-03 15:55:41 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-03 16:14:21 UTC) #16
msarett
Looks good to me, though I'm not too familiar with this code. https://codereview.chromium.org/2029373004/diff/60001/src/core/SkLightingShader.cpp File src/core/SkLightingShader.cpp ...
4 years, 6 months ago (2016-06-03 16:54:17 UTC) #17
reed1
PTAL Still does not know when to enable "respectful" behavior when the GPU wants to ...
4 years, 6 months ago (2016-06-07 16:01:10 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2029373004/100001
4 years, 6 months ago (2016-06-07 16:01:46 UTC) #21
Brian Osman
https://codereview.chromium.org/2029373004/diff/100001/src/gpu/SkGr.cpp File src/gpu/SkGr.cpp (right): https://codereview.chromium.org/2029373004/diff/100001/src/gpu/SkGr.cpp#newcode349 src/gpu/SkGr.cpp:349: * TODO: determine when we want respect -vs- (compatible) ...
4 years, 6 months ago (2016-06-07 16:10:31 UTC) #22
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot/builds/8946) Build-Ubuntu-GCC-Mips-Debug-Android-Trybot on ...
4 years, 6 months ago (2016-06-07 16:22:48 UTC) #24
reed1
https://codereview.chromium.org/2029373004/diff/100001/src/gpu/SkGr.cpp File src/gpu/SkGr.cpp (right): https://codereview.chromium.org/2029373004/diff/100001/src/gpu/SkGr.cpp#newcode349 src/gpu/SkGr.cpp:349: * TODO: determine when we want respect -vs- (compatible) ...
4 years, 6 months ago (2016-06-07 19:43:37 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2029373004/120001
4 years, 6 months ago (2016-06-07 19:44:06 UTC) #27
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot/builds/8960) Build-Ubuntu-GCC-Arm64-Debug-Android-Trybot on ...
4 years, 6 months ago (2016-06-07 21:22:30 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2029373004/140001
4 years, 6 months ago (2016-06-08 18:23:24 UTC) #31
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot/builds/8951)
4 years, 6 months ago (2016-06-08 18:26:35 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2029373004/160001
4 years, 6 months ago (2016-06-08 19:05:39 UTC) #35
reed1
ptal -- gamma GM now draws correctly for mipmaps!
4 years, 6 months ago (2016-06-08 19:05:48 UTC) #36
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot/builds/8952)
4 years, 6 months ago (2016-06-08 19:12:10 UTC) #38
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2029373004/180001
4 years, 6 months ago (2016-06-09 19:50:30 UTC) #40
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-09 20:17:26 UTC) #42
reed1
ping -- need a review
4 years, 6 months ago (2016-06-09 21:31:03 UTC) #43
Brian Osman
https://codereview.chromium.org/2029373004/diff/180001/bench/MipMapBench.cpp File bench/MipMapBench.cpp (right): https://codereview.chromium.org/2029373004/diff/180001/bench/MipMapBench.cpp#newcode22 bench/MipMapBench.cpp:22: fName.printf("mipmap_build_%dx%d_%d_gamma", w, h, static_cast<int>(treatment)); Not sure how much we ...
4 years, 6 months ago (2016-06-10 13:37:14 UTC) #44
reed1
https://codereview.chromium.org/2029373004/diff/180001/gm/all_bitmap_configs.cpp File gm/all_bitmap_configs.cpp (right): https://codereview.chromium.org/2029373004/diff/180001/gm/all_bitmap_configs.cpp#newcode160 gm/all_bitmap_configs.cpp:160: // sk_tool_utils::draw_checkerboard(canvas, SK_ColorLTGRAY, SK_ColorWHITE, 8); On 2016/06/10 13:37:14, Brian ...
4 years, 6 months ago (2016-06-10 14:26:04 UTC) #45
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2029373004/220001
4 years, 6 months ago (2016-06-10 14:26:26 UTC) #47
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-10 14:39:52 UTC) #49
Brian Osman
lgtm
4 years, 6 months ago (2016-06-10 14:40:49 UTC) #50
reed1
added GM
4 years, 6 months ago (2016-06-10 15:09:26 UTC) #51
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2029373004/240001
4 years, 6 months ago (2016-06-10 15:09:51 UTC) #53
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86-Debug-Trybot/builds/9094) Build-Win-MSVC-x86_64-Debug-Trybot on ...
4 years, 6 months ago (2016-06-10 15:24:21 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2029373004/260001
4 years, 6 months ago (2016-06-10 18:27:11 UTC) #58
commit-bot: I haz the power
Committed patchset #14 (id:260001) as https://skia.googlesource.com/skia/+/6644d9353f3f0c09914385fd762e073f98d54205
4 years, 6 months ago (2016-06-10 18:41:52 UTC) #60
commit-bot: I haz the power
4 years, 6 months ago (2016-06-10 18:41:55 UTC) #61
Message was sent while issue was closed.
CQ bit was unchecked

Powered by Google App Engine
This is Rietveld 408576698