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

Issue 12545014: Implement EXT_draw_buffers WebGL extention support in command buffer. (Closed)

Created:
7 years, 9 months ago by Zhenyao Mo
Modified:
5 years, 1 month ago
Reviewers:
jamesr, greggman
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cc-bugs_chromium.org, jam, apatrick_chromium, Ken Russell (switch to Gerrit)
Visibility:
Public.

Description

Implement EXT_draw_buffers WebGL extention support in command buffer. A few things: 1) I only hooked up with desktop GL backend, i.e., GL_ARB_draw_buffers. Will add GLES support later. 2) Probably we need to do something to enable this for Pepper3D also? If yes, will do so in a seperate CL. 3) I didn't add the wordarounds for Mac/Linux driver bugs. Will do so in a seperate CL. BUG=180397 TEST=gpu_unittests, webgl conformance tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188129

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 14

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 4

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+687 lines, -48 lines) Patch
M cc/fake_web_graphics_context_3d.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M cc/test/test_web_graphics_context_3d.cc View 1 2 3 10 chunks +19 lines, -14 lines 0 comments Download
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M gpu/GLES2/gl2chromium_autogen.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M gpu/GLES2/gl2extchromium.h View 1 2 3 1 chunk +119 lines, -0 lines 0 comments Download
M gpu/command_buffer/build_gles2_cmd_buffer.py View 1 2 3 4 chunks +22 lines, -6 lines 0 comments Download
M gpu/command_buffer/client/gles2_c_lib_autogen.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_cmd_helper_autogen.h View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation_autogen.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation_impl_autogen.h View 1 2 3 1 chunk +16 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation_unittest_autogen.h View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_interface_autogen.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_interface_stub_autogen.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_interface_stub_impl_autogen.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_trace_implementation_autogen.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_trace_implementation_impl_autogen.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M gpu/command_buffer/cmd_buffer_functions.txt View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_format_autogen.h View 1 2 3 1 chunk +87 lines, -0 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_format_test_autogen.h View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_ids_autogen.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_utils.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M gpu/command_buffer/common/gles2_cmd_utils.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/context_group.h View 1 2 3 4 5 6 7 4 chunks +20 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/context_group.cc View 1 2 3 4 5 6 7 2 chunks +16 lines, -2 lines 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 +25 lines, -1 line 0 comments Download
M gpu/command_buffer/service/framebuffer_manager.h View 1 2 3 4 5 6 7 5 chunks +12 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/framebuffer_manager.cc View 1 2 3 4 5 6 7 8 chunks +34 lines, -15 lines 0 comments Download
M gpu/command_buffer/service/framebuffer_manager_unittest.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 6 7 6 chunks +76 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_autogen.h View 1 2 3 1 chunk +44 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc View 1 2 3 1 chunk +55 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gl/generate_bindings.py View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/gpu/webgraphicscontext3d_in_process_impl.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/gpu/webgraphicscontext3d_in_process_impl.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Zhenyao Mo
gman: please review. jamesr: cc owner. kbr, apatrick: FYI.
7 years, 9 months ago (2013-03-07 01:06:58 UTC) #1
greggman
looks good mostly needs unit tests for DrawBuffersEXT in gles2_cmd_decoder_unittest.cc * Test that calling DrawBuffersEXT ...
7 years, 9 months ago (2013-03-08 21:48:28 UTC) #2
Zhenyao Mo
Revised. Please review again. https://codereview.chromium.org/12545014/diff/45/gpu/command_buffer/service/feature_info.cc File gpu/command_buffer/service/feature_info.cc (right): https://codereview.chromium.org/12545014/diff/45/gpu/command_buffer/service/feature_info.cc#newcode617 gpu/command_buffer/service/feature_info.cc:617: if (extensions.Contains("GL_ARB_draw_buffers")) { On 2013/03/08 ...
7 years, 9 months ago (2013-03-13 01:22:01 UTC) #3
Zhenyao Mo
Gregg, please have a look. I think the bots are green again (see mac_asan) after ...
7 years, 9 months ago (2013-03-13 23:17:45 UTC) #4
greggman
just a couple of minor things then LGTM https://codereview.chromium.org/12545014/diff/82003/gpu/command_buffer/common/gles2_cmd_utils.cc File gpu/command_buffer/common/gles2_cmd_utils.cc (right): https://codereview.chromium.org/12545014/diff/82003/gpu/command_buffer/common/gles2_cmd_utils.cc#newcode627 gpu/command_buffer/common/gles2_cmd_utils.cc:627: case ...
7 years, 9 months ago (2013-03-14 00:51:09 UTC) #5
Zhenyao Mo
jamesr: cc/ owner review. https://codereview.chromium.org/12545014/diff/82003/gpu/command_buffer/common/gles2_cmd_utils.cc File gpu/command_buffer/common/gles2_cmd_utils.cc (right): https://codereview.chromium.org/12545014/diff/82003/gpu/command_buffer/common/gles2_cmd_utils.cc#newcode627 gpu/command_buffer/common/gles2_cmd_utils.cc:627: case GL_COLOR_ATTACHMENT0: On 2013/03/14 00:51:10, ...
7 years, 9 months ago (2013-03-14 01:49:34 UTC) #6
jamesr
cc lgtm
7 years, 9 months ago (2013-03-14 18:00:47 UTC) #7
Zhenyao Mo
7 years, 9 months ago (2013-03-14 18:04:52 UTC) #8
Message was sent while issue was closed.
Committed patchset #8 manually as r188129 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698