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

Issue 1708263002: gpu: Expose internal format R8 instead of RED. (Closed)

Created:
4 years, 10 months ago by Daniele Castagna
Modified:
4 years, 10 months ago
CC:
ccameron, chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org, feature-media-reviews_chromium.org, 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

gpu: Expose internal format R8 instead of RED. As noted in crrev.com/1703153002 GL_R8 sized internalformat should be preferred to GL_RED. This CL lets the users of the command buffer use GL_R8, and it takes care of converting it to GL_RED when not supported by the underlying GL context. BUG= CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/7b277c596c517ce4a5d0985ace0da1806f2470f4 Cr-Commit-Position: refs/heads/master@{#377222}

Patch Set 1 #

Patch Set 2 : R8 is available only in >= gles2.0 and >= gl3.0. #

Patch Set 3 : Add gl_version_info.h include. #

Patch Set 4 : OpenGL ES 2.0 wants format == internal format. #

Patch Set 5 : ResourceProvider should use R8 too. #

Total comments: 6

Patch Set 6 : Address reveman's comments. #

Total comments: 9

Patch Set 7 : Allow RED in copyTexture. #

Total comments: 1

Patch Set 8 : Revert to 'Address reveman's comments'. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -13 lines) Patch
M cc/resources/resource_format.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M gpu/GLES2/extensions/CHROMIUM/CHROMIUM_image.txt View 3 chunks +3 lines, -2 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation.cc View 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 7 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/image_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/tests/gl_gpu_memory_buffer_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/video/gpu_memory_buffer_video_frame_pool.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/gl/gl_image_io_surface.mm View 1 2 3 4 5 3 chunks +5 lines, -2 lines 0 comments Download
M ui/gl/gl_image_memory.cc View 1 2 3 4 5 3 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 30 (10 generated)
Daniele Castagna
4 years, 10 months ago (2016-02-20 00:51:55 UTC) #5
reveman
lgtm % nits https://codereview.chromium.org/1708263002/diff/80001/cc/resources/resource_format.cc File cc/resources/resource_format.cc (right): https://codereview.chromium.org/1708263002/diff/80001/cc/resources/resource_format.cc#newcode91 cc/resources/resource_format.cc:91: if (format == RED_8) nit: return ...
4 years, 10 months ago (2016-02-20 01:07:55 UTC) #6
Daniele Castagna
https://codereview.chromium.org/1708263002/diff/80001/cc/resources/resource_format.cc File cc/resources/resource_format.cc (right): https://codereview.chromium.org/1708263002/diff/80001/cc/resources/resource_format.cc#newcode91 cc/resources/resource_format.cc:91: if (format == RED_8) On 2016/02/20 at 01:07:55, reveman ...
4 years, 10 months ago (2016-02-20 01:16:16 UTC) #7
Zhenyao Mo
https://codereview.chromium.org/1708263002/diff/100001/gpu/command_buffer/client/gles2_implementation.cc File gpu/command_buffer/client/gles2_implementation.cc (right): https://codereview.chromium.org/1708263002/diff/100001/gpu/command_buffer/client/gles2_implementation.cc#newcode5674 gpu/command_buffer/client/gles2_implementation.cc:5674: case GL_R8: Please also keep GL_RED https://codereview.chromium.org/1708263002/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc ...
4 years, 10 months ago (2016-02-22 22:53:08 UTC) #8
Daniele Castagna
https://codereview.chromium.org/1708263002/diff/120001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1708263002/diff/120001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode13161 gpu/command_buffer/service/gles2_cmd_decoder.cc:13161: source_internal_format == GL_R8 || source_internal_format == GL_RED || Also ...
4 years, 10 months ago (2016-02-22 22:53:43 UTC) #9
Zhenyao Mo
In general it looks good. I suggest we keep internal function validations flexible, so we ...
4 years, 10 months ago (2016-02-22 22:54:39 UTC) #10
Daniele Castagna
https://codereview.chromium.org/1708263002/diff/100001/gpu/command_buffer/client/gles2_implementation.cc File gpu/command_buffer/client/gles2_implementation.cc (right): https://codereview.chromium.org/1708263002/diff/100001/gpu/command_buffer/client/gles2_implementation.cc#newcode5674 gpu/command_buffer/client/gles2_implementation.cc:5674: case GL_R8: On 2016/02/22 at 22:53:08, Zhenyao Mo wrote: ...
4 years, 10 months ago (2016-02-22 23:16:33 UTC) #11
reveman
On 2016/02/22 at 22:54:39, zmo wrote: > In general it looks good. > > I ...
4 years, 10 months ago (2016-02-22 23:20:25 UTC) #12
Zhenyao Mo
On 2016/02/22 23:20:25, reveman wrote: > On 2016/02/22 at 22:54:39, zmo wrote: > > In ...
4 years, 10 months ago (2016-02-22 23:48:12 UTC) #13
Zhenyao Mo
lgtm I don't want to hold your CL from landing, so if reveman feels strongly ...
4 years, 10 months ago (2016-02-22 23:56:52 UTC) #14
reveman
On 2016/02/22 at 23:48:12, zmo wrote: > On 2016/02/22 23:20:25, reveman wrote: > > On ...
4 years, 10 months ago (2016-02-23 00:05:20 UTC) #15
Daniele Castagna
On 2016/02/22 at 23:56:52, zmo wrote: > lgtm > > I don't want to hold ...
4 years, 10 months ago (2016-02-23 21:35:01 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1708263002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1708263002/140001
4 years, 10 months ago (2016-02-23 21:42:42 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/149264)
4 years, 10 months ago (2016-02-23 22:00:27 UTC) #21
Daniele Castagna
+dalecurtis for ownership on media.
4 years, 10 months ago (2016-02-23 22:01:27 UTC) #23
DaleCurtis
lgtm
4 years, 10 months ago (2016-02-24 04:08:00 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1708263002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1708263002/140001
4 years, 10 months ago (2016-02-24 04:46:08 UTC) #26
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 10 months ago (2016-02-24 04:55:12 UTC) #27
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/7b277c596c517ce4a5d0985ace0da1806f2470f4 Cr-Commit-Position: refs/heads/master@{#377222}
4 years, 10 months ago (2016-02-24 04:56:19 UTC) #29
Daniele Castagna
4 years, 10 months ago (2016-02-25 20:22:47 UTC) #30
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/1741513002/ by dcastagna@chromium.org.

The reason for reverting is: This broke videos on windows: crbug.com/589775.

Powered by Google App Engine
This is Rietveld 408576698