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

Issue 2444813002: Remove unsafe mode to enable es3 api by default for WebGL2 and ES3 context (Closed)

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

Description

Remove unsafe mode to enable es3 api by default for WebGL2 and ES3 context. The blink side UnsafeES3APIs runtime flag has been removed by https://crrev.com/2451943002/. So, with this patch applied, the ES3 APIs will be finally enabled by default for WebGL2 in Chromium! BUG=654787 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

Patch Set 1 : remove runtime flag unsafeES3APIs from blink webgl module #

Total comments: 2

Patch Set 2 : 2) remove command line option --enable-unsafe-es3-apis from src/content/ and src/gpu/ #

Patch Set 3 : 3) add workaround to fix bugs in gpu_unittests, just like what --enable-unsafe-es3-apis have done #

Patch Set 4 : 4) remove command line switch kEnableUnsafeES3APIs from gpu_unittests #

Patch Set 5 : 7) remove EnableUnsafeES3APIs command buffer switch from /src/ui/gl/ and create ES3 context by default #

Patch Set 6 : fix a bug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -97 lines) Patch
M chrome/browser/about_flags.cc View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M content/common/gpu_host_messages.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/public/browser/gpu_utils.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/feature_info.h View 1 2 3 4 5 2 chunks +13 lines, -5 lines 0 comments Download
M gpu/command_buffer/service/feature_info.cc View 1 2 3 4 5 4 chunks +8 lines, -6 lines 0 comments Download
M gpu/command_buffer/service/feature_info_unittest.cc View 2 4 chunks +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/framebuffer_manager_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.h View 2 chunks +5 lines, -5 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 36 chunks +37 lines, -37 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc View 1 2 3 4 chunks +1 line, -4 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_1.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_2.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_3.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_framebuffers.cc View 1 2 3 3 chunks +0 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_programs.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gpu_preferences.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/texture_manager_unittest.cc View 1 2 3 3 chunks +11 lines, -2 lines 0 comments Download
M gpu/command_buffer/tests/es3_misc_functions_unittest.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M gpu/command_buffer/tests/fuzzer_main.cc View 1 1 chunk +0 lines, -3 lines 0 comments Download
M gpu/command_buffer/tests/gl_ext_blend_func_extended_unittest.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M gpu/command_buffer/tests/gl_map_buffer_range_unittest.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M gpu/command_buffer/tests/gl_request_extension_unittest.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M ui/gl/gl_context_wgl.cc View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M ui/gl/gl_surface_egl.cc View 1 2 3 4 5 1 chunk +1 line, -4 lines 0 comments Download
M ui/gl/gl_switches.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M ui/gl/gl_switches.cc View 1 2 3 4 2 chunks +0 lines, -4 lines 0 comments Download

Messages

Total messages: 72 (57 generated)
Zhenyao Mo
https://codereview.chromium.org/2444813002/diff/80001/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp File third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp (left): https://codereview.chromium.org/2444813002/diff/80001/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp#oldcode50 third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp:50: if (!contextProvider) I am wondering if only with the ...
4 years, 1 month ago (2016-10-25 16:52:05 UTC) #21
yunchao
On 2016/10/25 16:52:05, Zhenyao Mo wrote: > https://codereview.chromium.org/2444813002/diff/80001/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp > File third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp (left): > > https://codereview.chromium.org/2444813002/diff/80001/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContext.cpp#oldcode50 ...
4 years, 1 month ago (2016-10-26 00:27:34 UTC) #22
Zhenyao Mo
On 2016/10/26 00:27:34, yunchao wrote: > On 2016/10/25 16:52:05, Zhenyao Mo wrote: > > > ...
4 years, 1 month ago (2016-10-26 00:35:26 UTC) #23
yunchao
Thanks for your suggestion, Zhenyao. The separated CL is uploaded to https://codereview.chromium.org/2451943002/, could you take ...
4 years, 1 month ago (2016-10-26 03:27:09 UTC) #24
yunchao
Ken and Zhenyao, I separated my local patch into several patch sets (ps2 - ps6). ...
4 years, 1 month ago (2016-10-27 14:47:27 UTC) #38
yunchao
On 2016/10/27 14:47:27, yunchao wrote: > Ken and Zhenyao, I separated my local patch into ...
4 years, 1 month ago (2016-10-27 15:06:21 UTC) #39
Ken Russell (switch to Gerrit)
On 2016/10/27 15:06:21, yunchao wrote: > On 2016/10/27 14:47:27, yunchao wrote: > > Ken and ...
4 years, 1 month ago (2016-10-28 00:53:54 UTC) #42
Kai Ninomiya
On 2016/10/28 00:53:54, Ken Russell wrote: > On 2016/10/27 15:06:21, yunchao wrote: > > On ...
4 years, 1 month ago (2016-10-28 01:06:46 UTC) #43
yunchao
On 2016/10/28 01:06:46, Kai Ninomiya wrote: > On 2016/10/28 00:53:54, Ken Russell wrote: > > ...
4 years, 1 month ago (2016-10-28 14:24:08 UTC) #60
yunchao
On 2016/10/28 14:24:08, yunchao wrote: > On 2016/10/28 01:06:46, Kai Ninomiya wrote: > > On ...
4 years, 1 month ago (2016-10-28 15:03:28 UTC) #61
Kai Ninomiya
On 2016/10/28 15:03:28, yunchao wrote: > On 2016/10/28 14:24:08, yunchao wrote: > > On 2016/10/28 ...
4 years, 1 month ago (2016-10-28 16:40:02 UTC) #66
Kai Ninomiya
On 2016/10/28 16:40:02, Kai Ninomiya wrote: > On 2016/10/28 15:03:28, yunchao wrote: > > On ...
4 years, 1 month ago (2016-10-28 17:19:37 UTC) #67
Kai Ninomiya
I'm now going to close this in favor of my series of CLs: Command buffer ...
4 years, 1 month ago (2016-11-03 22:48:30 UTC) #70
Ken Russell (switch to Gerrit)
On 2016/11/03 22:48:30, Kai Ninomiya wrote: > I'm now going to close this in favor ...
4 years, 1 month ago (2016-11-03 23:28:39 UTC) #71
yunchao
4 years, 1 month ago (2016-11-04 05:20:43 UTC) #72
Message was sent while issue was closed.
On 2016/11/03 23:28:39, Ken Russell wrote:
> On 2016/11/03 22:48:30, Kai Ninomiya wrote:
> > I'm now going to close this in favor of my series of CLs:
> > 
> > Command buffer validation auditing:
> > https://codereview.chromium.org/2458523005
> > https://codereview.chromium.org/2461023002
> > https://codereview.chromium.org/2470623002
> > https://codereview.chromium.org/2466763002
> > GPU process flag removal:
> > https://codereview.chromium.org/2471853002
> > Enable WebGL 2 by default:
> > https://codereview.chromium.org/2473933002
> > 
> > Thanks yunchao for this patch, I used it to find a number of edits at
> different
> > places in the code which I had missed on my first run through.
> 
> Fantastic! Thanks Yunchao for your CL and Kai for following through on this.

That's OK. I saw the final patch at https://codereview.chromium.org/2473933002/.
A great work, Kai!

Powered by Google App Engine
This is Rietveld 408576698