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

Issue 2430653002: Mus+Ash: Towards Unifying CompositorFrameSink terminology (Closed)

Created:
4 years, 2 months ago by Fady Samuel
Modified:
4 years, 2 months ago
CC:
chromium-reviews, rjkroege, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, cc-bugs_chromium.org, darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mus+Ash: Towards Unifying CompositorFrameSink terminology This CL takes a few steps along the way to unify compositor code between Mus+Ash and the browser. 1. BitmapUploader uses ui::CompositorFrameSink. 2. MusBrowserCompositorOutputSurface uses ui::CompositorFrameSink. 3. Introduces ui::Window::RequestCompositorFrameSink that replaces RequestSurface 4. WindowSurface/ServerWindowSurface use MojoCompositorFrameSink interface and surface.mojom is deleted. TODO: Merge WindowSurface and WindowCompositorFrameSink. BUG=656975 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/86c4e98bfe7dbd67d30ce09b4a23d58b0a147c5a Cr-Commit-Position: refs/heads/master@{#426851}

Patch Set 1 #

Patch Set 2 : bitmap_uploader uses CompositorFrameSink #

Patch Set 3 : MusBrowserCompositorOutputSurface uses ui::CompositorFrameSink #

Patch Set 4 : Remove bad include #

Patch Set 5 : move context_provider to public #

Patch Set 6 : Fix bitmap_uploader #

Patch Set 7 : Add Window::RequestCompositorFrameSink #

Patch Set 8 : Fix bitmap_uploader #

Total comments: 24

Patch Set 9 : Updated #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+340 lines, -235 lines) Patch
M cc/ipc/mojo_compositor_frame_sink.mojom View 1 2 3 4 5 6 7 8 1 chunk +19 lines, -7 lines 0 comments Download
M content/browser/compositor/mus_browser_compositor_output_surface.h View 1 2 3 4 5 6 7 8 4 chunks +17 lines, -6 lines 0 comments Download
M content/browser/compositor/mus_browser_compositor_output_surface.cc View 1 2 3 4 5 6 5 chunks +31 lines, -15 lines 0 comments Download
M content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc View 1 4 chunks +11 lines, -5 lines 0 comments Download
M content/renderer/mus/compositor_mus_connection.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/mus/compositor_mus_connection.cc View 1 2 3 4 5 6 3 chunks +9 lines, -8 lines 0 comments Download
M content/renderer/mus/render_widget_mus_connection.cc View 1 2 3 4 5 6 3 chunks +4 lines, -4 lines 0 comments Download
M services/ui/demo/bitmap_uploader.h View 1 2 3 4 5 6 7 8 3 chunks +17 lines, -9 lines 0 comments Download
M services/ui/demo/bitmap_uploader.cc View 1 2 3 4 5 6 7 8 7 chunks +49 lines, -17 lines 0 comments Download
M services/ui/public/cpp/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M services/ui/public/cpp/compositor_frame_sink.h View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
M services/ui/public/cpp/compositor_frame_sink.cc View 1 2 2 chunks +9 lines, -17 lines 0 comments Download
M services/ui/public/cpp/tests/test_window_tree.h View 1 chunk +5 lines, -4 lines 0 comments Download
M services/ui/public/cpp/tests/test_window_tree.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M services/ui/public/cpp/window.h View 1 2 3 4 5 6 2 chunks +7 lines, -3 lines 0 comments Download
M services/ui/public/cpp/window.cc View 1 2 3 4 5 6 2 chunks +8 lines, -4 lines 0 comments Download
M services/ui/public/cpp/window_surface.h View 1 3 chunks +26 lines, -18 lines 0 comments Download
M services/ui/public/cpp/window_surface.cc View 1 2 chunks +25 lines, -15 lines 0 comments Download
M services/ui/public/cpp/window_surface_client.h View 1 1 chunk +2 lines, -3 lines 0 comments Download
M services/ui/public/cpp/window_tree_client.h View 1 chunk +5 lines, -4 lines 0 comments Download
M services/ui/public/cpp/window_tree_client.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M services/ui/public/interfaces/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
D services/ui/public/interfaces/surface.mojom View 1 chunk +0 lines, -22 lines 0 comments Download
M services/ui/public/interfaces/window_tree.mojom View 2 chunks +4 lines, -3 lines 0 comments Download
M services/ui/ws/frame_generator_unittest.cc View 2 chunks +7 lines, -5 lines 0 comments Download
M services/ui/ws/server_window.h View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M services/ui/ws/server_window.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M services/ui/ws/server_window_surface.h View 1 6 chunks +10 lines, -10 lines 0 comments Download
M services/ui/ws/server_window_surface.cc View 1 4 chunks +18 lines, -8 lines 0 comments Download
M services/ui/ws/server_window_surface_manager.h View 1 chunk +4 lines, -3 lines 0 comments Download
M services/ui/ws/server_window_surface_manager.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M services/ui/ws/window_tree.h View 1 chunk +5 lines, -4 lines 0 comments Download
M services/ui/ws/window_tree.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M services/ui/ws/window_tree_client_unittest.cc View 1 2 chunks +4 lines, -5 lines 2 comments Download
M third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp View 1 2 3 4 5 6 7 8 4 chunks +9 lines, -5 lines 0 comments Download
M ui/views/mus/surface_context_factory.cc View 1 2 3 4 5 6 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 60 (44 generated)
Fady Samuel
PTAL Rob!
4 years, 2 months ago (2016-10-19 04:34:24 UTC) #33
rjkroege
bunch-o-nits. https://codereview.chromium.org/2430653002/diff/140001/cc/ipc/mojo_compositor_frame_sink.mojom File cc/ipc/mojo_compositor_frame_sink.mojom (right): https://codereview.chromium.org/2430653002/diff/140001/cc/ipc/mojo_compositor_frame_sink.mojom#newcode20 cc/ipc/mojo_compositor_frame_sink.mojom:20: // For successful swaps, the implementation must call ...
4 years, 2 months ago (2016-10-20 21:33:18 UTC) #37
Fady Samuel
PTAL Rob! https://codereview.chromium.org/2430653002/diff/140001/cc/ipc/mojo_compositor_frame_sink.mojom File cc/ipc/mojo_compositor_frame_sink.mojom (right): https://codereview.chromium.org/2430653002/diff/140001/cc/ipc/mojo_compositor_frame_sink.mojom#newcode20 cc/ipc/mojo_compositor_frame_sink.mojom:20: // For successful swaps, the implementation must ...
4 years, 2 months ago (2016-10-20 23:04:11 UTC) #39
rjkroege
lgtm
4 years, 2 months ago (2016-10-20 23:53:47 UTC) #41
Fady Samuel
+tsepez@ for mojom +sky@ for services/ui +jam for the rest.
4 years, 2 months ago (2016-10-20 23:56:07 UTC) #43
sky
https://codereview.chromium.org/2430653002/diff/160001/services/ui/ws/window_tree_client_unittest.cc File services/ui/ws/window_tree_client_unittest.cc (right): https://codereview.chromium.org/2430653002/diff/160001/services/ui/ws/window_tree_client_unittest.cc#newcode2149 services/ui/ws/window_tree_client_unittest.cc:2149: cc::mojom::MojoCompositorFrameSinkPtr surface_ptr; Isn't the Mojo in 'cc::mojom::Mojo redundant with ...
4 years, 2 months ago (2016-10-21 03:18:36 UTC) #46
Fady Samuel
https://codereview.chromium.org/2430653002/diff/160001/services/ui/ws/window_tree_client_unittest.cc File services/ui/ws/window_tree_client_unittest.cc (right): https://codereview.chromium.org/2430653002/diff/160001/services/ui/ws/window_tree_client_unittest.cc#newcode2149 services/ui/ws/window_tree_client_unittest.cc:2149: cc::mojom::MojoCompositorFrameSinkPtr surface_ptr; On 2016/10/21 03:18:36, sky wrote: > Isn't ...
4 years, 2 months ago (2016-10-21 03:25:16 UTC) #47
jam
On 2016/10/20 23:56:07, Fady Samuel wrote: > +tsepez@ for mojom > +sky@ for services/ui > ...
4 years, 2 months ago (2016-10-21 15:57:35 UTC) #48
sky
LGTM
4 years, 2 months ago (2016-10-21 17:03:00 UTC) #49
Fady Samuel
+junov@ for offscreen canvas things +jam@ for content/ things.
4 years, 2 months ago (2016-10-21 17:21:14 UTC) #51
jam
On 2016/10/21 17:21:14, Fady Samuel wrote: > +junov@ for offscreen canvas things > +jam@ for ...
4 years, 2 months ago (2016-10-21 17:23:06 UTC) #52
Justin Novosad
lgtm for webkit
4 years, 2 months ago (2016-10-21 17:56:36 UTC) #53
Tom Sepez
LGTM for mojom.
4 years, 2 months ago (2016-10-21 18:00:31 UTC) #54
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/2430653002/160001
4 years, 2 months ago (2016-10-21 18:02:54 UTC) #56
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 2 months ago (2016-10-21 18:35:44 UTC) #58
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 18:42:52 UTC) #60
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/86c4e98bfe7dbd67d30ce09b4a23d58b0a147c5a
Cr-Commit-Position: refs/heads/master@{#426851}

Powered by Google App Engine
This is Rietveld 408576698