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

Issue 338193003: ozone: gpu: Add plumbing for platform-specific gpu messaging (Closed)

Created:
6 years, 6 months ago by spang
Modified:
6 years, 6 months ago
CC:
chromium-reviews, rjkroege, ozone-reviews_chromium.org, jam, darin-cc_chromium.org, piman+watch_chromium.org, kalyank
Project:
chromium
Visibility:
Public.

Description

ozone: gpu: Add plumbing for platform-specific gpu messaging ChromeOS without X11 will do display configuration and cursor movement from the GPU process. This is the conduit for the messages needed to make this work. This plumbing also supports other platforms with similar requirements (e.g. wayland's port). X11 does not need any specific messaging here, since we just call the X server from the browser. BUG=377497 TEST=content_shell --ozone-platform=egltest Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278465

Patch Set 1 #

Total comments: 18

Patch Set 2 : remove routing ids #

Total comments: 4

Patch Set 3 : merge ozone_gpu back into ozone #

Total comments: 3

Patch Set 4 : get instance via OzonePlatform #

Unified diffs Side-by-side diffs Delta from patch set Stats (+240 lines, -0 lines) Patch
M content/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/gpu/gpu_process_host_ui_shim.cc View 1 2 3 4 chunks +23 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M content/gpu/gpu_child_thread.cc View 1 2 3 3 chunks +18 lines, -0 lines 0 comments Download
A ui/ozone/gpu/gpu_platform_support.h View 1 2 3 1 chunk +31 lines, -0 lines 0 comments Download
A ui/ozone/gpu/gpu_platform_support.cc View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download
A ui/ozone/gpu/gpu_platform_support_host.h View 1 2 3 1 chunk +40 lines, -0 lines 0 comments Download
A ui/ozone/gpu/gpu_platform_support_host.cc View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download
M ui/ozone/ozone.gyp View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ui/ozone/ozone_platform.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M ui/ozone/platform/caca/ozone_platform_caca.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M ui/ozone/platform/dri/ozone_platform_dri.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M ui/ozone/platform/dri/ozone_platform_gbm.cc View 1 2 3 4 chunks +13 lines, -0 lines 0 comments Download
M ui/ozone/platform/egltest/ozone_platform_egltest.cc View 1 2 3 4 chunks +12 lines, -0 lines 0 comments Download
M ui/ozone/platform/test/ozone_platform_test.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
spang
This is a bit ugly since we now have to mint route ids for the ...
6 years, 6 months ago (2014-06-16 19:58:08 UTC) #1
spang
+piman Is this a reasonable approach, or should we perhaps have a new IPC::Channel altogether?
6 years, 6 months ago (2014-06-16 21:19:36 UTC) #2
alexst (slow to review)
https://codereview.chromium.org/338193003/diff/1/content/browser/gpu/browser_gpu_channel_host_factory.cc File content/browser/gpu/browser_gpu_channel_host_factory.cc (right): https://codereview.chromium.org/338193003/diff/1/content/browser/gpu/browser_gpu_channel_host_factory.cc#newcode205 content/browser/gpu/browser_gpu_channel_host_factory.cc:205: ui::GpuPlatformSupportHost::Initialize(); Do we need to explicitly init this here? ...
6 years, 6 months ago (2014-06-16 21:34:23 UTC) #3
rjkroege
https://codereview.chromium.org/338193003/diff/1/content/browser/gpu/gpu_process_host.cc File content/browser/gpu/gpu_process_host.cc (right): https://codereview.chromium.org/338193003/diff/1/content/browser/gpu/gpu_process_host.cc#newcode530 content/browser/gpu/gpu_process_host.cc:530: int32 host_route_id = GenerateRouteID(); you are presuming that we ...
6 years, 6 months ago (2014-06-16 21:38:49 UTC) #4
piman
I'd rather reuse the existing channel - we already have 2 channels for better or ...
6 years, 6 months ago (2014-06-16 23:53:15 UTC) #5
spang
https://codereview.chromium.org/338193003/diff/1/content/browser/gpu/browser_gpu_channel_host_factory.cc File content/browser/gpu/browser_gpu_channel_host_factory.cc (right): https://codereview.chromium.org/338193003/diff/1/content/browser/gpu/browser_gpu_channel_host_factory.cc#newcode205 content/browser/gpu/browser_gpu_channel_host_factory.cc:205: ui::GpuPlatformSupportHost::Initialize(); On 2014/06/16 21:34:23, alexst wrote: > Do we ...
6 years, 6 months ago (2014-06-17 14:47:34 UTC) #6
piman
On Tue, Jun 17, 2014 at 7:47 AM, <spang@chromium.org> wrote: > > https://codereview.chromium.org/338193003/diff/1/content/ > browser/gpu/browser_gpu_channel_host_factory.cc ...
6 years, 6 months ago (2014-06-17 21:17:13 UTC) #7
spang
PTAL. I've removed everything related to routing. All unhandled messages now get routed to platform ...
6 years, 6 months ago (2014-06-18 15:44:26 UTC) #8
rjkroege
https://codereview.chromium.org/338193003/diff/20001/ui/ozone/gpu/gpu_platform_support.h File ui/ozone/gpu/gpu_platform_support.h (right): https://codereview.chromium.org/338193003/diff/20001/ui/ozone/gpu/gpu_platform_support.h#newcode27 ui/ozone/gpu/gpu_platform_support.h:27: // Called when the GPU process is spun up ...
6 years, 6 months ago (2014-06-18 17:02:26 UTC) #9
spang
I moved the files into to the monolithic ozone component. Makine a new component seems ...
6 years, 6 months ago (2014-06-18 20:11:14 UTC) #10
piman
https://codereview.chromium.org/338193003/diff/40001/ui/ozone/gpu/gpu_platform_support.h File ui/ozone/gpu/gpu_platform_support.h (right): https://codereview.chromium.org/338193003/diff/40001/ui/ozone/gpu/gpu_platform_support.h#newcode29 ui/ozone/gpu/gpu_platform_support.h:29: static GpuPlatformSupport* instance_; Rather than adding more statics, could ...
6 years, 6 months ago (2014-06-18 21:51:39 UTC) #11
spang
https://codereview.chromium.org/338193003/diff/20001/ui/ozone/gpu/gpu_platform_support.h File ui/ozone/gpu/gpu_platform_support.h (right): https://codereview.chromium.org/338193003/diff/20001/ui/ozone/gpu/gpu_platform_support.h#newcode27 ui/ozone/gpu/gpu_platform_support.h:27: // Called when the GPU process is spun up ...
6 years, 6 months ago (2014-06-18 23:21:43 UTC) #12
piman
lgtm
6 years, 6 months ago (2014-06-19 01:17:40 UTC) #13
rjkroege
lgtm
6 years, 6 months ago (2014-06-19 14:26:28 UTC) #14
spang
The CQ bit was checked by spang@chromium.org
6 years, 6 months ago (2014-06-19 15:00:09 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/spang@chromium.org/338193003/60001
6 years, 6 months ago (2014-06-19 15:01:40 UTC) #16
commit-bot: I haz the power
Change committed as 278465
6 years, 6 months ago (2014-06-19 20:01:04 UTC) #17
chrishtr
6 years, 6 months ago (2014-06-19 21:32:08 UTC) #18
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/339793007/ by chrishtr@chromium.org.

The reason for reverting is: Suspect it is causing a failure of
webgl_conformance_tests for this bot:

http://build.chromium.org/p/chromium.gpu/builders/Win7%20Release%20(Intel)/bu....

Powered by Google App Engine
This is Rietveld 408576698