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

Issue 1168993002: Update the native_viewport interface to allow specification of the surface configuration, currently… (Closed)

Created:
5 years, 6 months ago by iansf
Modified:
5 years, 6 months ago
CC:
abarth-chromium, Aaron Boodman, ben+mojo_chromium.org, darin (slow to review), gregsimon, jackson_old, mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Update the native_viewport interface to allow specification of the surface configuration, currently only needed for and used by EGL on Android. This also fixes an issue where eglChooseConfig was only being called in InitializeOneOff, which is only called once per process. This CL makes choosing the config happen once per GLSurface instead, which will ultimately permit apps to create multiple native_viewports with different surface configurations on the same display. The eglDisplay object is still a global, though. R=abarth@chromium.org, viettrungluu@chromium.org, jamesr@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/f66f4370dd9eef42cec3ec11cd654934ea38c3d4

Patch Set 1 #

Total comments: 40

Patch Set 2 : Fix header issue #

Total comments: 21

Patch Set 3 : Requested fixes and a few other minor corrections #

Total comments: 8

Patch Set 4 : More requested fixes #

Patch Set 5 : Fixes for linux build issues, hopefully #

Patch Set 6 : Hopefully got all of the linux compile issues now... #

Total comments: 6

Patch Set 7 : Final cleanups #

Unified diffs Side-by-side diffs Delta from patch set Stats (+448 lines, -205 lines) Patch
M apps/moterm/gl_helper_test_app.cc View 1 chunk +1 line, -1 line 0 comments Download
M examples/spinning_cube/spinning_cube_app.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M examples/surfaces_app/surfaces_app.cc View 1 chunk +2 lines, -1 line 0 comments Download
M gpu/command_buffer/service/async_pixel_transfer_manager_egl.cc View 1 chunk +2 lines, -1 line 0 comments Download
M gpu/command_buffer/service/async_pixel_transfer_manager_share_group.cc View 1 chunk +2 lines, -1 line 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.h View 1 2 3 4 5 2 chunks +14 lines, -18 lines 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.cc View 1 2 3 4 5 4 chunks +32 lines, -4 lines 0 comments Download
M gpu/config/gpu_info_collector.cc View 1 chunk +2 lines, -1 line 0 comments Download
A mojo/converters/native_viewport/BUILD.gn View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
A mojo/converters/native_viewport/surface_configuration_type_converters.h View 1 chunk +23 lines, -0 lines 0 comments Download
A mojo/converters/native_viewport/surface_configuration_type_converters.cc View 1 chunk +23 lines, -0 lines 0 comments Download
M mojo/services/native_viewport/public/interfaces/native_viewport.mojom View 1 2 1 chunk +10 lines, -1 line 0 comments Download
M services/gles2/command_buffer_driver.h View 1 2 3 3 chunks +6 lines, -2 lines 0 comments Download
M services/gles2/command_buffer_driver.cc View 1 2 3 2 chunks +11 lines, -5 lines 0 comments Download
M services/gles2/gpu_impl.cc View 1 chunk +2 lines, -1 line 0 comments Download
M services/native_viewport/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M services/native_viewport/native_viewport_impl.h View 3 1 chunk +3 lines, -1 line 0 comments Download
M services/native_viewport/native_viewport_impl.cc View 1 2 3 4 5 6 2 chunks +11 lines, -2 lines 0 comments Download
M services/native_viewport/onscreen_context_provider.h View 1 2 3 chunks +6 lines, -1 line 0 comments Download
M services/native_viewport/onscreen_context_provider.cc View 1 2 3 chunks +4 lines, -2 lines 0 comments Download
M services/view_manager/display_manager.cc View 1 chunk +1 line, -0 lines 0 comments Download
M sky/shell/gpu/rasterizer.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ui/gl/gl_surface.h View 1 2 3 4 5 4 chunks +22 lines, -4 lines 0 comments Download
M ui/gl/gl_surface.cc View 1 2 2 chunks +6 lines, -2 lines 0 comments Download
M ui/gl/gl_surface_android.cc View 1 2 3 4 5 3 chunks +14 lines, -9 lines 0 comments Download
M ui/gl/gl_surface_egl.h View 1 2 5 chunks +10 lines, -4 lines 0 comments Download
M ui/gl/gl_surface_egl.cc View 1 2 3 4 5 11 chunks +121 lines, -115 lines 0 comments Download
M ui/gl/gl_surface_glx.h View 1 2 3 4 3 chunks +8 lines, -3 lines 0 comments Download
M ui/gl/gl_surface_glx.cc View 1 2 3 4 4 chunks +19 lines, -5 lines 0 comments Download
M ui/gl/gl_surface_osmesa.h View 1 2 3 chunks +7 lines, -2 lines 0 comments Download
M ui/gl/gl_surface_osmesa.cc View 1 2 3 chunks +26 lines, -5 lines 0 comments Download
M ui/gl/gl_surface_stub.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ui/gl/gl_surface_stub.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M ui/gl/gl_surface_x11.cc View 1 2 3 4 5 5 chunks +26 lines, -13 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
iansf
This replaces issue 1162003008, which I am closing.
5 years, 6 months ago (2015-06-09 00:10:42 UTC) #1
abarth-chromium
This looks great! LGTM I didn't mark all the nullptrs and const Foo& changes, but ...
5 years, 6 months ago (2015-06-09 00:30:22 UTC) #2
viettrungluu
Drive-by questions (plus nits).... https://codereview.chromium.org/1168993002/diff/20001/mojo/services/native_viewport/public/interfaces/native_viewport.mojom File mojo/services/native_viewport/public/interfaces/native_viewport.mojom (right): https://codereview.chromium.org/1168993002/diff/20001/mojo/services/native_viewport/public/interfaces/native_viewport.mojom#newcode28 mojo/services/native_viewport/public/interfaces/native_viewport.mojom:28: Create(Size size, SurfaceConfiguration requested_configuration) => ...
5 years, 6 months ago (2015-06-09 00:48:15 UTC) #4
iansf
Thanks for the comments, both of you! Tomorrow I'll get the linux builders working and ...
5 years, 6 months ago (2015-06-09 01:52:05 UTC) #5
qsr
https://codereview.chromium.org/1168993002/diff/40001/gpu/command_buffer/service/in_process_command_buffer.cc File gpu/command_buffer/service/in_process_command_buffer.cc (right): https://codereview.chromium.org/1168993002/diff/40001/gpu/command_buffer/service/in_process_command_buffer.cc#newcode347 gpu/command_buffer/service/in_process_command_buffer.cc:347: const gfx::SurfaceConfiguration requested_configuration) { Same here. https://codereview.chromium.org/1168993002/diff/40001/gpu/command_buffer/service/in_process_command_buffer.h File gpu/command_buffer/service/in_process_command_buffer.h ...
5 years, 6 months ago (2015-06-09 11:02:52 UTC) #7
iansf
Thanks for the comments! https://codereview.chromium.org/1168993002/diff/40001/gpu/command_buffer/service/in_process_command_buffer.cc File gpu/command_buffer/service/in_process_command_buffer.cc (right): https://codereview.chromium.org/1168993002/diff/40001/gpu/command_buffer/service/in_process_command_buffer.cc#newcode347 gpu/command_buffer/service/in_process_command_buffer.cc:347: const gfx::SurfaceConfiguration requested_configuration) { On ...
5 years, 6 months ago (2015-06-09 17:23:25 UTC) #8
viettrungluu
https://codereview.chromium.org/1168993002/diff/20001/services/native_viewport/native_viewport_impl.cc File services/native_viewport/native_viewport_impl.cc (right): https://codereview.chromium.org/1168993002/diff/20001/services/native_viewport/native_viewport_impl.cc#newcode50 services/native_viewport/native_viewport_impl.cc:50: requested_configuration.To<gfx::SurfaceConfiguration>()); On 2015/06/09 01:52:05, iansf wrote: > On 2015/06/09 ...
5 years, 6 months ago (2015-06-09 22:18:08 UTC) #10
iansf
Builds are green -- should I land this? https://codereview.chromium.org/1168993002/diff/20001/services/native_viewport/native_viewport_impl.cc File services/native_viewport/native_viewport_impl.cc (right): https://codereview.chromium.org/1168993002/diff/20001/services/native_viewport/native_viewport_impl.cc#newcode50 services/native_viewport/native_viewport_impl.cc:50: requested_configuration.To<gfx::SurfaceConfiguration>()); ...
5 years, 6 months ago (2015-06-09 22:29:06 UTC) #11
viettrungluu
(A couple more nits, but LGTM otherwise.) https://codereview.chromium.org/1168993002/diff/100001/apps/moterm/gl_helper_test_app.cc File apps/moterm/gl_helper_test_app.cc (right): https://codereview.chromium.org/1168993002/diff/100001/apps/moterm/gl_helper_test_app.cc#newcode221 apps/moterm/gl_helper_test_app.cc:221: viewport_size_.Clone(), mojo::SurfaceConfiguration::New(), ...
5 years, 6 months ago (2015-06-09 22:38:35 UTC) #12
viettrungluu
On 2015/06/09 22:29:06, iansf wrote: > Builds are green -- should I land this? > ...
5 years, 6 months ago (2015-06-09 22:44:39 UTC) #13
iansf
Thanks! I'm landing as soon as these changes return green. https://codereview.chromium.org/1168993002/diff/100001/apps/moterm/gl_helper_test_app.cc File apps/moterm/gl_helper_test_app.cc (right): https://codereview.chromium.org/1168993002/diff/100001/apps/moterm/gl_helper_test_app.cc#newcode221 ...
5 years, 6 months ago (2015-06-09 23:45:26 UTC) #14
iansf
5 years, 6 months ago (2015-06-09 23:50:38 UTC) #15
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as
f66f4370dd9eef42cec3ec11cd654934ea38c3d4 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698