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

Issue 2420813002: optimize precision for conversion from srgb to linear (Closed)

Created:
4 years, 2 months ago by yizhou.jiang
Modified:
4 years, 1 month ago
CC:
chromium-reviews, piman+watch_chromium.org, Yang Gu
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

optimize precision for conversion from srgb to linear Convertion from sRGB to 8-bit linear is going to reduce the precision of the texture, and the downsampling will do the same thing. We should set texture internalformat to rgba32f to optimize precision. BUG=634519 TEST=conformance2/textures/misc/tex-srgb-mipmap.html CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/0500571c0a41d977f64653eeaed4809351205a35 Cr-Commit-Position: refs/heads/master@{#427014}

Patch Set 1 : optimize precision for conversion from srgb to linear #

Total comments: 2

Patch Set 2 : Addressed to Qiankun's feedback #

Patch Set 3 : Addressed to Zhenyao's feedback #

Total comments: 2

Patch Set 4 : Addressed to Zhenyao's feedback #

Patch Set 5 : rebase code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -4 lines) Patch
M gpu/command_buffer/service/feature_info.h View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_srgb_converter.cc View 1 2 3 2 chunks +8 lines, -4 lines 0 comments Download

Messages

Total messages: 60 (38 generated)
yunchao
LGTM. @zmo and all, PTAL.
4 years, 2 months ago (2016-10-14 06:29:52 UTC) #13
yunchao
On 2016/10/14 06:29:52, yunchao wrote: > LGTM. > @zmo and all, PTAL. Zhenyao and Ken, ...
4 years, 2 months ago (2016-10-14 06:35:56 UTC) #23
yunchao
4 years, 2 months ago (2016-10-14 06:42:10 UTC) #25
yizhou.jiang
On 2016/10/14 06:29:52, yunchao wrote: > LGTM. > @zmo and all, PTAL. Thanks for your ...
4 years, 2 months ago (2016-10-14 06:43:14 UTC) #26
Zhenyao Mo
https://codereview.chromium.org/2420813002/diff/1/gpu/command_buffer/service/gles2_cmd_srgb_converter.cc File gpu/command_buffer/service/gles2_cmd_srgb_converter.cc (right): https://codereview.chromium.org/2420813002/diff/1/gpu/command_buffer/service/gles2_cmd_srgb_converter.cc#newcode361 gpu/command_buffer/service/gles2_cmd_srgb_converter.cc:361: glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA32F, width, height, 0, GL_RGBA, RGBA32F isn't ...
4 years, 2 months ago (2016-10-14 07:05:04 UTC) #28
yunchao
Thanks for your quick review, Zhenyao. Please see the comments inline. https://codereview.chromium.org/2420813002/diff/1/gpu/command_buffer/service/gles2_cmd_srgb_converter.cc File gpu/command_buffer/service/gles2_cmd_srgb_converter.cc (right): ...
4 years, 2 months ago (2016-10-14 07:28:34 UTC) #34
Zhenyao Mo
On 2016/10/14 07:28:34, yunchao wrote: > Thanks for your quick review, Zhenyao. Please see the ...
4 years, 2 months ago (2016-10-14 17:13:51 UTC) #35
yunchao
On 2016/10/14 17:13:51, Zhenyao Mo wrote: > On 2016/10/14 07:28:34, yunchao wrote: > > Thanks ...
4 years, 2 months ago (2016-10-15 01:11:38 UTC) #36
Zhenyao Mo
On 2016/10/15 01:11:38, yunchao wrote: > On 2016/10/14 17:13:51, Zhenyao Mo wrote: > > On ...
4 years, 2 months ago (2016-10-15 02:53:47 UTC) #37
yunchao
On 2016/10/15 02:53:47, Zhenyao Mo wrote: > On 2016/10/15 01:11:38, yunchao wrote: > > On ...
4 years, 2 months ago (2016-10-15 15:14:39 UTC) #38
Zhenyao Mo
On 2016/10/15 15:14:39, yunchao wrote: > On 2016/10/15 02:53:47, Zhenyao Mo wrote: > > On ...
4 years, 2 months ago (2016-10-17 18:29:43 UTC) #39
yunchao
> > Zhenyao, your feedback reminded me that we should use high precision texture > ...
4 years, 2 months ago (2016-10-18 00:23:11 UTC) #40
yizhou.jiang
On 2016/10/17 18:29:43, Zhenyao Mo wrote: > On 2016/10/15 15:14:39, yunchao wrote: > > On ...
4 years, 2 months ago (2016-10-19 10:56:32 UTC) #41
Ken Russell (switch to Gerrit)
On 2016/10/14 06:35:56, yunchao wrote: > On 2016/10/14 06:29:52, yunchao wrote: > > LGTM. > ...
4 years, 2 months ago (2016-10-19 23:55:23 UTC) #42
yunchao
On 2016/10/19 23:55:23, Ken Russell wrote: > On 2016/10/14 06:35:56, yunchao wrote: > > On ...
4 years, 2 months ago (2016-10-20 08:17:24 UTC) #43
Zhenyao Mo
https://codereview.chromium.org/2420813002/diff/40001/gpu/command_buffer/service/gles2_cmd_srgb_converter.cc File gpu/command_buffer/service/gles2_cmd_srgb_converter.cc (right): https://codereview.chromium.org/2420813002/diff/40001/gpu/command_buffer/service/gles2_cmd_srgb_converter.cc#newcode364 gpu/command_buffer/service/gles2_cmd_srgb_converter.cc:364: if (feature_info_->ext_color_buffer_float_available()) { Sorry I forgot to mention this ...
4 years, 2 months ago (2016-10-20 16:54:04 UTC) #44
yizhou.jiang
Thanks for your review @zmo, @kbr. Code has been revised, please have another look. https://codereview.chromium.org/2420813002/diff/40001/gpu/command_buffer/service/gles2_cmd_srgb_converter.cc ...
4 years, 2 months ago (2016-10-21 03:25:26 UTC) #45
Zhenyao Mo
On 2016/10/21 03:25:26, yizhou.jiang wrote: > Thanks for your review @zmo, @kbr. Code has been ...
4 years, 2 months ago (2016-10-21 17:52:45 UTC) #46
Ken Russell (switch to Gerrit)
I defer to zmo's review.
4 years, 2 months ago (2016-10-22 01:06:59 UTC) #47
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/2420813002/80001
4 years, 1 month ago (2016-10-24 04:15:25 UTC) #56
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-10-24 04:28:16 UTC) #58
commit-bot: I haz the power
4 years, 1 month ago (2016-10-24 04:30:44 UTC) #60
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/0500571c0a41d977f64653eeaed4809351205a35
Cr-Commit-Position: refs/heads/master@{#427014}

Powered by Google App Engine
This is Rietveld 408576698