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

Issue 1759433002: Update GL_IMPLEMENTATION_COLOR_READ_FORMAT for BGRA (Closed)

Created:
4 years, 9 months ago by ericrk
Modified:
4 years, 9 months ago
Reviewers:
bsalomon, no sievers, piman
CC:
chromium-reviews, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update GL_IMPLEMENTATION_COLOR_READ_FORMAT for BGRA GL_IMPLEMENTATION_COLOR_READ_FORMAT currently always returns RGBA for BGRA or RGBA buffers. To provide a more reasonable emulation of this ES feature on desktop, we should return BGRA readback for framebuffers whose internal format is BGRA. On GLES, this change has no impact, as the GL API is queried directly. BUG=581311, 591152 CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel Committed: https://crrev.com/3211b4666e5354ddba6c60014837b434dabc7a88 Cr-Commit-Position: refs/heads/master@{#379890}

Patch Set 1 #

Patch Set 2 : Remove no longer needed check from GLHelperReadbackSupport::SupportsFormat #

Total comments: 3

Patch Set 3 : feedback #

Total comments: 3

Patch Set 4 : feedback #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -16 lines) Patch
M content/common/gpu/client/gl_helper_readback_support.cc View 1 1 chunk +0 lines, -11 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_utils.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_utils.cc View 1 2 2 chunks +11 lines, -1 line 0 comments Download
M gpu/command_buffer/service/feature_info.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/feature_info.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M gpu/command_buffer/service/feature_info_unittest.cc View 1 2 3 4 chunks +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 1 chunk +3 lines, -1 line 3 comments Download

Messages

Total messages: 27 (10 generated)
ericrk
https://codereview.chromium.org/1759433002/diff/20001/content/common/gpu/client/gl_helper_readback_support.cc File content/common/gpu/client/gl_helper_readback_support.cc (left): https://codereview.chromium.org/1759433002/diff/20001/content/common/gpu/client/gl_helper_readback_support.cc#oldcode107 content/common/gpu/client/gl_helper_readback_support.cc:107: if (format == GL_BGRA_EXT && type == GL_UNSIGNED_BYTE) { ...
4 years, 9 months ago (2016-03-02 17:40:30 UTC) #3
piman
The code in GLHelperReadbackSupport::GetReadbackConfig will try to use the additional format, assuming it is prefered. ...
4 years, 9 months ago (2016-03-04 20:55:37 UTC) #4
ericrk
On 2016/03/04 20:55:37, piman - OOO back 2016-03-04 wrote: > The code in GLHelperReadbackSupport::GetReadbackConfig will ...
4 years, 9 months ago (2016-03-04 21:59:43 UTC) #5
ericrk
On 2016/03/04 21:59:43, ericrk wrote: > On 2016/03/04 20:55:37, piman - OOO back 2016-03-04 wrote: ...
4 years, 9 months ago (2016-03-04 22:03:45 UTC) #6
piman
On Fri, Mar 4, 2016 at 1:59 PM, <ericrk@chromium.org> wrote: > On 2016/03/04 20:55:37, piman ...
4 years, 9 months ago (2016-03-04 23:59:59 UTC) #7
ericrk
re-worked this based on feedback - let me know how this looks. https://codereview.chromium.org/1759433002/diff/80001/gpu/command_buffer/common/gles2_cmd_utils.cc File gpu/command_buffer/common/gles2_cmd_utils.cc ...
4 years, 9 months ago (2016-03-07 20:38:59 UTC) #11
piman
https://codereview.chromium.org/1759433002/diff/80001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1759433002/diff/80001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode5119 gpu/command_buffer/service/gles2_cmd_decoder.cc:5119: context_->HasExtension("GL_EXT_read_format_bgra")); Actually, here you're only asking the underlying GL ...
4 years, 9 months ago (2016-03-07 21:04:14 UTC) #12
ericrk
https://codereview.chromium.org/1759433002/diff/80001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1759433002/diff/80001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode5119 gpu/command_buffer/service/gles2_cmd_decoder.cc:5119: context_->HasExtension("GL_EXT_read_format_bgra")); On 2016/03/07 21:04:14, piman wrote: > Actually, here ...
4 years, 9 months ago (2016-03-08 00:07:18 UTC) #13
piman
lgtm
4 years, 9 months ago (2016-03-08 00:13:03 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1759433002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1759433002/100001
4 years, 9 months ago (2016-03-08 00:13:55 UTC) #16
no sievers
https://codereview.chromium.org/1759433002/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1759433002/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode5119 gpu/command_buffer/service/gles2_cmd_decoder.cc:5119: feature_info_->feature_flags().ext_read_format_bgra); Don't we strictly speaking also have to check ...
4 years, 9 months ago (2016-03-08 00:26:28 UTC) #17
no sievers
https://codereview.chromium.org/1759433002/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1759433002/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode5119 gpu/command_buffer/service/gles2_cmd_decoder.cc:5119: feature_info_->feature_flags().ext_read_format_bgra); On 2016/03/08 00:26:28, sievers wrote: > Don't we ...
4 years, 9 months ago (2016-03-08 00:28:44 UTC) #18
piman
https://codereview.chromium.org/1759433002/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1759433002/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode5119 gpu/command_buffer/service/gles2_cmd_decoder.cc:5119: feature_info_->feature_flags().ext_read_format_bgra); On 2016/03/08 00:28:44, sievers wrote: > On 2016/03/08 ...
4 years, 9 months ago (2016-03-08 00:48:07 UTC) #20
no sievers
On 2016/03/08 00:48:07, piman wrote: > We only get here if we support full GL_EXT_bgra, ...
4 years, 9 months ago (2016-03-08 01:00:09 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1759433002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1759433002/100001
4 years, 9 months ago (2016-03-08 18:19:09 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:100001)
4 years, 9 months ago (2016-03-08 19:44:12 UTC) #25
commit-bot: I haz the power
4 years, 9 months ago (2016-03-08 19:45:22 UTC) #27
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/3211b4666e5354ddba6c60014837b434dabc7a88
Cr-Commit-Position: refs/heads/master@{#379890}

Powered by Google App Engine
This is Rietveld 408576698