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

Issue 2480373002: Refactor context creation parameters into a struct. (Closed)

Created:
4 years, 1 month ago by Geoff Lang
Modified:
4 years, 1 month ago
CC:
android-webview-reviews_chromium.org, chromium-reviews, feature-media-reviews_chromium.org, kalyank, mac-reviews_chromium.org, ozone-reviews_chromium.org, piman+watch_chromium.org, posciak+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor context creation parameters into a struct. This allows for easily adding new parameters to GL context creation, added parameters for creating contexts with EGL_CHROMIUM_create_context_bind_generates_resource and EGL_ANGLE_create_context_webgl_compatibility. Small related fix: disallow create-on-bind for vertex arrays and transform feedbacks in the passthrough command buffer, these objects do not allow create-on-bind by the ES 3.0 spec but the semantics were mistakenly added. BUG=angleproject:1518 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/df7fff2d416e731d3a968cf6bd16bb6f5f60eaee Cr-Commit-Position: refs/heads/master@{#431412}

Patch Set 1 #

Total comments: 10

Patch Set 2 : address piman's comments #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+291 lines, -151 lines) Patch
M android_webview/browser/scoped_app_gl_state_restore.cc View 1 1 chunk +1 line, -1 line 2 comments Download
M android_webview/browser/test/fake_window.cc View 1 1 chunk +2 lines, -2 lines 1 comment Download
M gpu/command_buffer/common/gles2_cmd_utils.h View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_utils.cc View 1 chunk +15 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/feature_info.h View 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/feature_info.cc View 2 chunks +6 lines, -12 lines 0 comments Download
M gpu/command_buffer/service/gl_context_virtual.h View 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/gl_context_virtual.cc View 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/gl_context_virtual_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc View 2 chunks +9 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc View 5 chunks +12 lines, -35 lines 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.cc View 2 chunks +13 lines, -4 lines 0 comments Download
A gpu/command_buffer/service/service_utils.h View 1 chunk +24 lines, -0 lines 0 comments Download
A gpu/command_buffer/service/service_utils.cc View 1 1 chunk +27 lines, -0 lines 0 comments Download
M gpu/command_buffer/tests/gl_manager.cc View 1 3 chunks +12 lines, -7 lines 0 comments Download
M gpu/config/gpu_info_collector.cc View 1 chunk +1 line, -1 line 0 comments Download
M gpu/gles2_conform_support/egl/context.cc View 1 chunk +3 lines, -1 line 0 comments Download
M gpu/ipc/service/gpu_command_buffer_stub.cc View 4 chunks +13 lines, -6 lines 0 comments Download
M gpu/perftests/texture_upload_perftest.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/gpu/android_video_decode_accelerator_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/gpu/rendering_helper.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/gl/gl_api_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/gl/gl_context.h View 3 chunks +9 lines, -3 lines 0 comments Download
M ui/gl/gl_context.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gl/gl_context_cgl.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/gl/gl_context_cgl.cc View 1 1 chunk +9 lines, -3 lines 0 comments Download
M ui/gl/gl_context_egl.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/gl/gl_context_egl.cc View 1 4 chunks +41 lines, -20 lines 0 comments Download
M ui/gl/gl_context_glx.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/gl/gl_context_glx.cc View 1 1 chunk +7 lines, -2 lines 0 comments Download
M ui/gl/gl_context_osmesa.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/gl/gl_context_osmesa.cc View 1 1 chunk +6 lines, -1 line 0 comments Download
M ui/gl/gl_context_stub.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/gl/gl_context_stub.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gl/gl_context_wgl.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/gl/gl_context_wgl.cc View 1 1 chunk +7 lines, -2 lines 0 comments Download
M ui/gl/gl_surface_egl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gl/gl_surface_egl.cc View 5 chunks +17 lines, -1 line 0 comments Download
M ui/gl/init/gl_factory.h View 2 chunks +2 lines, -1 line 0 comments Download
M ui/gl/init/gl_factory_android.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M ui/gl/init/gl_factory_mac.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M ui/gl/init/gl_factory_ozone.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M ui/gl/init/gl_factory_win.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M ui/gl/init/gl_factory_x11.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M ui/gl/test/gl_image_test_template.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/ozone/common/gl_ozone_egl.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/ozone/common/gl_ozone_egl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/ozone/platform/x11/gl_ozone_glx.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/ozone/platform/x11/gl_ozone_glx.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/ozone/public/gl_ozone.h View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 35 (17 generated)
Geoff Lang
PTAL, a fairly simple change but touches lots of files. Also looking for thoughts about ...
4 years, 1 month ago (2016-11-07 19:26:58 UTC) #5
rjkroege
*ozone* lgtm
4 years, 1 month ago (2016-11-07 19:44:26 UTC) #6
piman
The default value for GLContextAttribs is just fine, it's consistent with ContextCreationAttribHelper which has the ...
4 years, 1 month ago (2016-11-07 21:01:01 UTC) #9
Geoff Lang
https://codereview.chromium.org/2480373002/diff/1/android_webview/browser/scoped_app_gl_state_restore.cc File android_webview/browser/scoped_app_gl_state_restore.cc (right): https://codereview.chromium.org/2480373002/diff/1/android_webview/browser/scoped_app_gl_state_restore.cc#newcode34 android_webview/browser/scoped_app_gl_state_restore.cc:34: GetAppContextAttribs())) {} On 2016/11/07 21:01:01, piman wrote: > nit: ...
4 years, 1 month ago (2016-11-07 21:36:21 UTC) #10
piman
lgtm, thanks!
4 years, 1 month ago (2016-11-07 21:47:17 UTC) #13
Torne
https://codereview.chromium.org/2480373002/diff/20001/android_webview/browser/scoped_app_gl_state_restore.cc File android_webview/browser/scoped_app_gl_state_restore.cc (right): https://codereview.chromium.org/2480373002/diff/20001/android_webview/browser/scoped_app_gl_state_restore.cc#newcode28 android_webview/browser/scoped_app_gl_state_restore.cc:28: gl::GLContextAttribs())) {} If I'm reading correctly the default is ...
4 years, 1 month ago (2016-11-08 14:34:29 UTC) #16
Geoff Lang
https://codereview.chromium.org/2480373002/diff/20001/android_webview/browser/scoped_app_gl_state_restore.cc File android_webview/browser/scoped_app_gl_state_restore.cc (right): https://codereview.chromium.org/2480373002/diff/20001/android_webview/browser/scoped_app_gl_state_restore.cc#newcode28 android_webview/browser/scoped_app_gl_state_restore.cc:28: gl::GLContextAttribs())) {} On 2016/11/08 14:34:29, Torne wrote: > If ...
4 years, 1 month ago (2016-11-08 14:44:00 UTC) #17
Geoff Lang
https://codereview.chromium.org/2480373002/diff/20001/android_webview/browser/scoped_app_gl_state_restore.cc File android_webview/browser/scoped_app_gl_state_restore.cc (right): https://codereview.chromium.org/2480373002/diff/20001/android_webview/browser/scoped_app_gl_state_restore.cc#newcode28 android_webview/browser/scoped_app_gl_state_restore.cc:28: gl::GLContextAttribs())) {} On 2016/11/08 14:34:29, Torne wrote: > If ...
4 years, 1 month ago (2016-11-08 14:44:01 UTC) #18
Torne
Ah, I didn't see that earlier comment. I guess that makes sense. android_webview LGTM
4 years, 1 month ago (2016-11-08 14:44:51 UTC) #19
kylechar
You've already got lgtms from everything I'm familiar with but lgtm too.
4 years, 1 month ago (2016-11-08 14:54:58 UTC) #20
DaleCurtis
media/ lgtm
4 years, 1 month ago (2016-11-10 21:37:18 UTC) #23
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/2480373002/20001
4 years, 1 month ago (2016-11-10 21:38:25 UTC) #26
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-11 00:34:34 UTC) #28
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/df7fff2d416e731d3a968cf6bd16bb6f5f60eaee Cr-Commit-Position: refs/heads/master@{#431412}
4 years, 1 month ago (2016-11-11 00:39:08 UTC) #30
Tom (Use chromium acct)
Hi geofflang@ I'm suspecting this CL is causing a build failure on the Chromium Ozone ...
4 years, 1 month ago (2016-11-11 01:26:14 UTC) #32
Pawel Osciak
media/gpu lgtm
4 years, 1 month ago (2016-11-11 05:56:32 UTC) #33
Geoff Lang
On 2016/11/11 01:26:14, Tom Anderson wrote: > Hi geofflang@ > > I'm suspecting this CL ...
4 years, 1 month ago (2016-11-11 15:19:23 UTC) #34
Alexander Alekseev
4 years, 1 month ago (2016-11-12 08:37:01 UTC) #35
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/2497503004/ by alemate@chromium.org.

The reason for reverting is: Speculative revert because of
https://crbug.com/664719.

Powered by Google App Engine
This is Rietveld 408576698