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

Issue 1309273005: native_viewport support for ozone (Closed)

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

Description

native_viewport support for ozone Switches ozone_platform_gbm to surfaceless, so that initializing graphics doesn't require a gbm device in GbmSurfaceFactory::GetNativeDisplay. R=jamesr@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/4802bc77a23b721a3cb19a82f62ccafad99e671c

Patch Set 1 #

Total comments: 28

Patch Set 2 : addressing some review comments #

Patch Set 3 : moved mojo ipc under ui/ozone #

Patch Set 4 : addressing review feedback #

Total comments: 29

Patch Set 5 : made display type an enum, and other feedback #

Patch Set 6 : fixed TODO comment #

Patch Set 7 : rebased #

Patch Set 8 : added a static_assert for LAST #

Patch Set 9 : minor mojom docs update #

Total comments: 4

Patch Set 10 : address feedback #

Patch Set 11 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1139 lines, -348 lines) Patch
A + mojo/converters/ozone_drm_gpu/BUILD.gn View 1 2 1 chunk +6 lines, -5 lines 0 comments Download
A mojo/converters/ozone_drm_gpu/ozone_drm_gpu_type_converters.h View 1 chunk +37 lines, -0 lines 0 comments Download
A mojo/converters/ozone_drm_gpu/ozone_drm_gpu_type_converters.cc View 1 2 3 4 5 6 7 1 chunk +108 lines, -0 lines 0 comments Download
M mojo/services/mojo_services.gni View 1 chunk +2 lines, -0 lines 0 comments Download
A + mojo/services/ozone_drm_gpu/public/interfaces/BUILD.gn View 1 chunk +2 lines, -2 lines 0 comments Download
A mojo/services/ozone_drm_gpu/public/interfaces/ozone_drm_gpu.mojom View 1 2 3 4 5 6 7 8 9 1 chunk +54 lines, -0 lines 0 comments Download
A + mojo/services/ozone_drm_host/public/interfaces/BUILD.gn View 1 chunk +2 lines, -3 lines 0 comments Download
A mojo/services/ozone_drm_host/public/interfaces/ozone_drm_host.mojom View 1 chunk +13 lines, -0 lines 0 comments Download
M services/native_viewport/BUILD.gn View 1 2 5 chunks +23 lines, -3 lines 0 comments Download
A services/native_viewport/app_delegate.h View 1 2 1 chunk +65 lines, -0 lines 0 comments Download
A services/native_viewport/app_delegate.cc View 1 2 1 chunk +80 lines, -0 lines 0 comments Download
M services/native_viewport/main.cc View 1 2 1 chunk +10 lines, -90 lines 0 comments Download
A services/native_viewport/ozone/app_delegate_ozone.h View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
A services/native_viewport/ozone/app_delegate_ozone.cc View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
A services/native_viewport/ozone/display_manager.h View 1 2 3 1 chunk +48 lines, -0 lines 0 comments Download
A services/native_viewport/ozone/display_manager.cc View 1 2 3 1 chunk +85 lines, -0 lines 0 comments Download
A + services/native_viewport/ozone/platform_viewport_ozone.cc View 3 chunks +4 lines, -6 lines 0 comments Download
D services/native_viewport/platform_viewport_ozone.cc View 1 chunk +0 lines, -136 lines 0 comments Download
M ui/display/types/display_snapshot.h View 1 2 3 3 chunks +0 lines, -14 lines 0 comments Download
M ui/display/types/display_snapshot.cc View 1 2 3 2 chunks +0 lines, -6 lines 0 comments Download
M ui/gl/gl_image_linux_dma_buffer.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gl/gl_surface_ozone.cc View 3 chunks +6 lines, -1 line 0 comments Download
M ui/ozone/BUILD.gn View 1 2 3 4 4 chunks +13 lines, -6 lines 0 comments Download
M ui/ozone/common/display_snapshot_proxy.cc View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M ui/ozone/common/display_util.cc View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M ui/ozone/common/gpu/ozone_gpu_message_params.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M ui/ozone/demo/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/ozone.gni View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/ozone/platform/drm/BUILD.gn View 1 2 3 chunks +16 lines, -0 lines 0 comments Download
M ui/ozone/platform/drm/common/drm_util.cc View 1 2 3 4 chunks +0 lines, -24 lines 0 comments Download
M ui/ozone/platform/drm/gpu/gbm_surface_factory.cc View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
M ui/ozone/platform/drm/host/drm_display_host_manager.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ui/ozone/platform/drm/host/drm_display_host_manager.cc View 1 2 3 4 3 chunks +13 lines, -14 lines 0 comments Download
M ui/ozone/platform/drm/host/drm_gpu_platform_support_host.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/ozone/platform/drm/host/drm_gpu_platform_support_host.cc View 1 2 3 4 4 chunks +11 lines, -11 lines 0 comments Download
A ui/ozone/platform/drm/mojo/drm_gpu_delegate.h View 1 2 3 4 1 chunk +32 lines, -0 lines 0 comments Download
A ui/ozone/platform/drm/mojo/drm_gpu_delegate.cc View 1 2 1 chunk +35 lines, -0 lines 0 comments Download
A ui/ozone/platform/drm/mojo/drm_gpu_impl.h View 1 2 3 4 1 chunk +40 lines, -0 lines 0 comments Download
A ui/ozone/platform/drm/mojo/drm_gpu_impl.cc View 1 2 1 chunk +54 lines, -0 lines 0 comments Download
A ui/ozone/platform/drm/mojo/drm_host_delegate.h View 1 2 3 4 1 chunk +38 lines, -0 lines 0 comments Download
A ui/ozone/platform/drm/mojo/drm_host_delegate.cc View 1 2 1 chunk +54 lines, -0 lines 0 comments Download
A ui/ozone/platform/drm/mojo/drm_host_impl.h View 1 2 3 4 1 chunk +34 lines, -0 lines 0 comments Download
A ui/ozone/platform/drm/mojo/drm_host_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +36 lines, -0 lines 0 comments Download
A ui/ozone/platform/drm/mojo/drm_ipc_init_helper.cc View 1 2 3 4 1 chunk +94 lines, -0 lines 0 comments Download
M ui/ozone/platform/drm/ozone_platform_gbm.cc View 1 2 5 chunks +9 lines, -4 lines 0 comments Download
A ui/ozone/public/ipc_init_helper_mojo.h View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
A + ui/ozone/public/ipc_init_helper_ozone.h View 1 2 1 chunk +8 lines, -5 lines 0 comments Download
M ui/ozone/public/ozone_platform.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (1 generated)
cdotstout
5 years, 4 months ago (2015-08-24 22:13:03 UTC) #2
jamesr
What does the file_path / file_descriptor passing do? It seems a bit un-mojo-ish https://codereview.chromium.org/1309273005/diff/1/mojo/converters/ozone_drm_gpu/BUILD.gn File ...
5 years, 4 months ago (2015-08-25 00:30:28 UTC) #3
spang
It's a bit strange that the DRM types have leaked out of of the platform ...
5 years, 4 months ago (2015-08-25 00:57:58 UTC) #4
jamesr
On 2015/08/25 at 00:57:58, spang wrote: > It's a bit strange that the DRM types ...
5 years, 4 months ago (2015-08-25 00:59:35 UTC) #5
spang
On 2015/08/25 00:59:35, jamesr wrote: > On 2015/08/25 at 00:57:58, spang wrote: > > It's ...
5 years, 4 months ago (2015-08-25 01:23:16 UTC) #6
cdotstout
On 2015/08/25 01:23:16, spang wrote: > On 2015/08/25 00:59:35, jamesr wrote: > > On 2015/08/25 ...
5 years, 3 months ago (2015-08-25 18:13:36 UTC) #7
jamesr
On 2015/08/25 at 18:13:36, cstout wrote: > I think the issue here is encapsulation of ...
5 years, 3 months ago (2015-08-25 18:16:12 UTC) #8
spang
On 2015/08/25 18:16:12, jamesr wrote: > On 2015/08/25 at 18:13:36, cstout wrote: > > I ...
5 years, 3 months ago (2015-08-25 18:17:40 UTC) #9
jamesr
On 2015/08/25 at 18:17:40, spang wrote: > On 2015/08/25 18:16:12, jamesr wrote: > > On ...
5 years, 3 months ago (2015-08-25 18:21:26 UTC) #10
cdotstout
On 2015/08/25 18:21:26, jamesr wrote: > On 2015/08/25 at 18:17:40, spang wrote: > > On ...
5 years, 3 months ago (2015-08-25 18:26:22 UTC) #11
jamesr
On 2015/08/25 at 18:26:22, cstout wrote: > On 2015/08/25 18:21:26, jamesr wrote: > > On ...
5 years, 3 months ago (2015-08-25 18:30:09 UTC) #12
cdotstout
will attempt to move mojo ipc under ui/ozone in the next patch
5 years, 3 months ago (2015-08-25 18:41:42 UTC) #13
cdotstout
https://codereview.chromium.org/1309273005/diff/1/mojo/converters/ozone_drm_gpu/BUILD.gn File mojo/converters/ozone_drm_gpu/BUILD.gn (right): https://codereview.chromium.org/1309273005/diff/1/mojo/converters/ozone_drm_gpu/BUILD.gn#newcode5 mojo/converters/ozone_drm_gpu/BUILD.gn:5: component("ozone_drm_gpu") { On 2015/08/25 00:30:28, jamesr wrote: > s/component/source_set/ ...
5 years, 3 months ago (2015-08-27 19:10:22 UTC) #14
jamesr
https://codereview.chromium.org/1309273005/diff/60001/mojo/converters/ozone_drm_gpu/ozone_drm_gpu_type_converters.cc File mojo/converters/ozone_drm_gpu/ozone_drm_gpu_type_converters.cc (right): https://codereview.chromium.org/1309273005/diff/60001/mojo/converters/ozone_drm_gpu/ozone_drm_gpu_type_converters.cc#newcode40 mojo/converters/ozone_drm_gpu/ozone_drm_gpu_type_converters.cc:40: out.type = static_cast<ui::DisplayConnectionType>(in->type); is this type interpreted using the ...
5 years, 3 months ago (2015-08-27 19:35:48 UTC) #15
cdotstout
https://codereview.chromium.org/1309273005/diff/60001/mojo/converters/ozone_drm_gpu/ozone_drm_gpu_type_converters.cc File mojo/converters/ozone_drm_gpu/ozone_drm_gpu_type_converters.cc (right): https://codereview.chromium.org/1309273005/diff/60001/mojo/converters/ozone_drm_gpu/ozone_drm_gpu_type_converters.cc#newcode40 mojo/converters/ozone_drm_gpu/ozone_drm_gpu_type_converters.cc:40: out.type = static_cast<ui::DisplayConnectionType>(in->type); On 2015/08/27 19:35:47, jamesr wrote: > ...
5 years, 3 months ago (2015-08-27 21:28:34 UTC) #16
spang
https://codereview.chromium.org/1309273005/diff/60001/mojo/services/ozone_drm_gpu/public/interfaces/ozone_drm_gpu.mojom File mojo/services/ozone_drm_gpu/public/interfaces/ozone_drm_gpu.mojom (right): https://codereview.chromium.org/1309273005/diff/60001/mojo/services/ozone_drm_gpu/public/interfaces/ozone_drm_gpu.mojom#newcode20 mojo/services/ozone_drm_gpu/public/interfaces/ozone_drm_gpu.mojom:20: bool has_current_mode; On 2015/08/27 21:28:33, cdotstout wrote: > On ...
5 years, 3 months ago (2015-08-28 19:38:20 UTC) #17
cdotstout
On 2015/08/28 19:38:20, spang wrote: > https://codereview.chromium.org/1309273005/diff/60001/mojo/services/ozone_drm_gpu/public/interfaces/ozone_drm_gpu.mojom > File mojo/services/ozone_drm_gpu/public/interfaces/ozone_drm_gpu.mojom (right): > > https://codereview.chromium.org/1309273005/diff/60001/mojo/services/ozone_drm_gpu/public/interfaces/ozone_drm_gpu.mojom#newcode20 > ...
5 years, 3 months ago (2015-08-28 20:37:57 UTC) #18
jamesr
I think what this patch does is fine.
5 years, 3 months ago (2015-08-28 20:41:29 UTC) #19
jamesr
lgtm https://codereview.chromium.org/1309273005/diff/160001/mojo/services/ozone_drm_gpu/public/interfaces/ozone_drm_gpu.mojom File mojo/services/ozone_drm_gpu/public/interfaces/ozone_drm_gpu.mojom (right): https://codereview.chromium.org/1309273005/diff/160001/mojo/services/ozone_drm_gpu/public/interfaces/ozone_drm_gpu.mojom#newcode37 mojo/services/ozone_drm_gpu/public/interfaces/ozone_drm_gpu.mojom:37: // TODO: can this be just an index ...
5 years, 3 months ago (2015-08-28 20:49:44 UTC) #20
cdotstout
https://codereview.chromium.org/1309273005/diff/160001/mojo/services/ozone_drm_gpu/public/interfaces/ozone_drm_gpu.mojom File mojo/services/ozone_drm_gpu/public/interfaces/ozone_drm_gpu.mojom (right): https://codereview.chromium.org/1309273005/diff/160001/mojo/services/ozone_drm_gpu/public/interfaces/ozone_drm_gpu.mojom#newcode37 mojo/services/ozone_drm_gpu/public/interfaces/ozone_drm_gpu.mojom:37: // TODO: can this be just an index into ...
5 years, 3 months ago (2015-08-28 20:59:14 UTC) #21
cdotstout
5 years, 3 months ago (2015-08-28 22:00:20 UTC) #22
Message was sent while issue was closed.
Committed patchset #11 (id:200001) manually as
4802bc77a23b721a3cb19a82f62ccafad99e671c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698