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

Issue 2464123003: Enabling Aura-Mus clients to submit frames to Mus. (Closed)

Created:
4 years, 1 month ago by mfomitchev
Modified:
4 years, 1 month ago
Reviewers:
sky, piman
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, tfarina, jam, yzshen+watch_chromium.org, abarth-chromium, jbauman+watch_chromium.org, Aaron Boodman, darin-cc_chromium.org, piman+watch_chromium.org, kalyank, danakj+watch_chromium.org, darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enabling Aura-Mus clients to submit frames to Mus. - Copying GPUService, WindowCompositorFrameSink, and supporting classes from services/ui/public/cpp/ to ui/aura/mus. - Adding RequestCompositorFrameSink to WindowPortMus. - Making SurfaceContextFactory work with Aura-Mus. Instead of getting ui::Window from the ui::Compositor, it uses AcceleratedWidget to find WTH and the corresponding root window. - Ditto for GpuProcessTransportFactory - SurfaceContextFactory, GpuProcessTransportFactory, and MusBrowserCompositorOutputSurface are made to work with both Aura-Mus as well as the old client library. This results in a bit of an awkward code with a few icky "ifs", but this is temporary until we get rid of the old client lib completely. - Aura gets a few new deps, including cc, and gpu. BUG=660886 Committed: https://crrev.com/3364e66eca1f71f542c2d9937acbf5ec288fcdc6 Cr-Commit-Position: refs/heads/master@{#429448}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Rebase, addressing feedback, removing some unneded imports/deps. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -81 lines) Patch
M content/browser/compositor/gpu_process_transport_factory.cc View 2 chunks +19 lines, -5 lines 0 comments Download
M content/browser/compositor/mus_browser_compositor_output_surface.h View 4 chunks +21 lines, -0 lines 0 comments Download
M content/browser/compositor/mus_browser_compositor_output_surface.cc View 3 chunks +33 lines, -2 lines 0 comments Download
M mojo/public/cpp/bindings/sync_call_restrictions.h View 2 chunks +5 lines, -0 lines 0 comments Download
M ui/aura/BUILD.gn View 1 3 chunks +14 lines, -0 lines 0 comments Download
A ui/aura/mus/DEPS View 1 1 chunk +10 lines, -0 lines 0 comments Download
A + ui/aura/mus/gpu_memory_buffer_impl.h View 1 3 chunks +5 lines, -6 lines 0 comments Download
A + ui/aura/mus/gpu_memory_buffer_impl.cc View 2 chunks +3 lines, -3 lines 0 comments Download
A + ui/aura/mus/gpu_service.h View 1 3 chunks +9 lines, -9 lines 0 comments Download
A + ui/aura/mus/gpu_service.cc View 1 3 chunks +4 lines, -5 lines 0 comments Download
A + ui/aura/mus/mojo_gpu_memory_buffer.h View 2 chunks +7 lines, -7 lines 0 comments Download
A + ui/aura/mus/mojo_gpu_memory_buffer.cc View 2 chunks +2 lines, -2 lines 0 comments Download
A + ui/aura/mus/mojo_gpu_memory_buffer_manager.h View 2 chunks +5 lines, -5 lines 0 comments Download
A + ui/aura/mus/mojo_gpu_memory_buffer_manager.cc View 2 chunks +4 lines, -4 lines 0 comments Download
A + ui/aura/mus/window_compositor_frame_sink.h View 1 5 chunks +7 lines, -9 lines 0 comments Download
A + ui/aura/mus/window_compositor_frame_sink.cc View 1 2 chunks +3 lines, -5 lines 0 comments Download
M ui/aura/mus/window_port_mus.h View 1 2 chunks +12 lines, -0 lines 0 comments Download
M ui/aura/mus/window_port_mus.cc View 1 1 chunk +26 lines, -0 lines 0 comments Download
M ui/aura/mus/window_tree_host_mus.cc View 1 1 chunk +0 lines, -3 lines 0 comments Download
M ui/views/mus/mus_client.h View 1 3 chunks +2 lines, -5 lines 0 comments Download
M ui/views/mus/mus_client.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ui/views/mus/surface_context_factory.h View 3 chunks +13 lines, -1 line 0 comments Download
M ui/views/mus/surface_context_factory.cc View 1 4 chunks +31 lines, -8 lines 0 comments Download

Messages

Total messages: 24 (7 generated)
mfomitchev
sky: Does this look reasonable? Not sure if it's worth moving GPU Service classes into ...
4 years, 1 month ago (2016-11-01 20:39:39 UTC) #1
mfomitchev
sky: Does this look reasonable? Not sure if it's worth moving GPU Service classes into ...
4 years, 1 month ago (2016-11-01 20:42:07 UTC) #3
sky
Only one question about BUILD.gn and deps, everything else looks good. https://codereview.chromium.org/2464123003/diff/1/ui/aura/mus/DEPS File ui/aura/mus/DEPS (right): ...
4 years, 1 month ago (2016-11-01 20:46:53 UTC) #4
mfomitchev
https://codereview.chromium.org/2464123003/diff/1/ui/aura/mus/DEPS File ui/aura/mus/DEPS (right): https://codereview.chromium.org/2464123003/diff/1/ui/aura/mus/DEPS#newcode2 ui/aura/mus/DEPS:2: "+cc/ipc/mojo_compositor_frame_sink.mojom.h", On 2016/11/01 20:46:53, sky wrote: > I noticed ...
4 years, 1 month ago (2016-11-01 21:01:59 UTC) #5
mfomitchev
4 years, 1 month ago (2016-11-01 21:02:01 UTC) #6
sky
It doesn't seem like you pushed a new patch. https://codereview.chromium.org/2464123003/diff/1/ui/views/mus/surface_context_factory.cc File ui/views/mus/surface_context_factory.cc (right): https://codereview.chromium.org/2464123003/diff/1/ui/views/mus/surface_context_factory.cc#newcode60 ui/views/mus/surface_context_factory.cc:60: ...
4 years, 1 month ago (2016-11-01 21:36:05 UTC) #8
mfomitchev
On 2016/11/01 21:36:05, sky wrote: > It doesn't seem like you pushed a new patch. ...
4 years, 1 month ago (2016-11-01 21:49:44 UTC) #9
sadrul
On 2016/11/01 21:49:44, mfomitchev wrote: > On 2016/11/01 21:36:05, sky wrote: > > It doesn't ...
4 years, 1 month ago (2016-11-02 01:23:13 UTC) #10
mfomitchev
sky@, can you PTAL? https://codereview.chromium.org/2464123003/diff/1/ui/aura/mus/DEPS File ui/aura/mus/DEPS (right): https://codereview.chromium.org/2464123003/diff/1/ui/aura/mus/DEPS#newcode2 ui/aura/mus/DEPS:2: "+cc/ipc/mojo_compositor_frame_sink.mojom.h", On 2016/11/01 21:01:59, mfomitchev ...
4 years, 1 month ago (2016-11-02 20:00:31 UTC) #12
sky
LGTM
4 years, 1 month ago (2016-11-02 21:02:13 UTC) #13
mfomitchev
piman@chromium.org: Please review changes in content/browser/compositor/ ui/aura/mus/DEPS
4 years, 1 month ago (2016-11-02 21:15:12 UTC) #15
piman
So much duplication... What's the timeframe to remove the services/ui versions of all these?
4 years, 1 month ago (2016-11-02 21:27:07 UTC) #16
mfomitchev
On 2016/11/02 21:27:07, piman wrote: > So much duplication... What's the timeframe to remove the ...
4 years, 1 month ago (2016-11-02 21:37:38 UTC) #17
piman
ok, lgtm.
4 years, 1 month ago (2016-11-02 21:51:04 UTC) #18
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/2464123003/20001
4 years, 1 month ago (2016-11-02 21:53:04 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-02 23:24:04 UTC) #22
commit-bot: I haz the power
4 years, 1 month ago (2016-11-02 23:27:02 UTC) #24
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/3364e66eca1f71f542c2d9937acbf5ec288fcdc6
Cr-Commit-Position: refs/heads/master@{#429448}

Powered by Google App Engine
This is Rietveld 408576698