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

Issue 2610723002: Unify SurfaceInfo (Closed)

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

Description

Unify SurfaceInfo Previously, we had two SurfaceInfo objects: ui/aura/mus/surface_id_handler.h's SurfaceInfo and cc/surfaces/surface_info.h This CL switches to using cc::SurfaceInfo instead, transmitting it over mojo and replaces all call sites where the fields are passed individually. SurfaceInfo becomes part of the Mus API: It is the bundle of state necessary to embed a Surface across processes. BUG=676375 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Committed: https://crrev.com/96795520bafe2e33f755948f2d732cb42d10504a Cr-Commit-Position: refs/heads/master@{#441301}

Patch Set 1 #

Patch Set 2 : SurfaceObserver uses SurfaceInfo #

Patch Set 3 : ChildFrameCompositingHelper using SurfaceInfo #

Patch Set 4 : More cleanup #

Total comments: 1

Patch Set 5 : Cleanup offscreen canvas #

Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -268 lines) Patch
M cc/ipc/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download
M cc/ipc/display_compositor.mojom View 2 chunks +2 lines, -4 lines 0 comments Download
A cc/ipc/surface_info.mojom View 1 chunk +17 lines, -0 lines 0 comments Download
A cc/ipc/surface_info.typemap View 1 chunk +11 lines, -0 lines 0 comments Download
A cc/ipc/surface_info_struct_traits.h View 1 chunk +36 lines, -0 lines 0 comments Download
M cc/ipc/typemaps.gni View 1 chunk +1 line, -0 lines 0 comments Download
M cc/surfaces/display.h View 1 1 chunk +1 line, -3 lines 0 comments Download
M cc/surfaces/display.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M cc/surfaces/surface_factory.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M cc/surfaces/surface_factory_unittest.cc View 1 2 chunks +4 lines, -5 lines 0 comments Download
M cc/surfaces/surface_info.h View 2 chunks +5 lines, -0 lines 0 comments Download
M cc/surfaces/surface_manager.h View 1 1 chunk +1 line, -3 lines 0 comments Download
M cc/surfaces/surface_manager.cc View 1 1 chunk +2 lines, -4 lines 0 comments Download
M cc/surfaces/surface_observer.h View 1 1 chunk +3 lines, -9 lines 0 comments Download
M content/browser/renderer_host/offscreen_canvas_surface_impl.h View 1 1 chunk +1 line, -3 lines 0 comments Download
M content/browser/renderer_host/offscreen_canvas_surface_impl.cc View 1 2 3 4 1 chunk +6 lines, -10 lines 0 comments Download
M content/browser/renderer_host/offscreen_canvas_surface_manager.h View 1 1 chunk +1 line, -3 lines 0 comments Download
M content/browser/renderer_host/offscreen_canvas_surface_manager.cc View 1 1 chunk +3 lines, -5 lines 0 comments Download
M content/browser/renderer_host/offscreen_canvas_surface_manager_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/child_frame_compositing_helper.h View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M content/renderer/child_frame_compositing_helper.cc View 1 2 3 chunks +7 lines, -7 lines 0 comments Download
M content/renderer/render_frame_proxy.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M services/ui/public/cpp/surface_id_handler.h View 2 chunks +5 lines, -13 lines 0 comments Download
M services/ui/public/cpp/window.h View 3 chunks +3 lines, -2 lines 0 comments Download
M services/ui/public/cpp/window.cc View 3 chunks +8 lines, -9 lines 0 comments Download
M services/ui/public/cpp/window_private.h View 1 chunk +2 lines, -2 lines 0 comments Download
M services/ui/public/cpp/window_tree_client.h View 2 chunks +1 line, -4 lines 0 comments Download
M services/ui/public/cpp/window_tree_client.cc View 1 chunk +2 lines, -8 lines 0 comments Download
M services/ui/public/interfaces/window_tree.mojom View 2 chunks +2 lines, -5 lines 0 comments Download
M services/ui/surfaces/display_compositor.h View 1 1 chunk +1 line, -3 lines 0 comments Download
M services/ui/surfaces/display_compositor.cc View 1 1 chunk +7 lines, -8 lines 0 comments Download
M services/ui/surfaces/display_compositor_unittest.cc View 1 5 chunks +14 lines, -10 lines 0 comments Download
M services/ui/ws/frame_generator_unittest.cc View 1 2 3 2 chunks +14 lines, -12 lines 0 comments Download
M services/ui/ws/server_window_compositor_frame_sink_manager.h View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M services/ui/ws/server_window_compositor_frame_sink_manager.cc View 1 2 3 4 chunks +8 lines, -10 lines 0 comments Download
M services/ui/ws/test_change_tracker.h View 1 chunk +1 line, -3 lines 0 comments Download
M services/ui/ws/test_change_tracker.cc View 1 chunk +4 lines, -6 lines 0 comments Download
M services/ui/ws/test_utils.h View 1 chunk +1 line, -3 lines 0 comments Download
M services/ui/ws/test_utils.cc View 1 chunk +1 line, -3 lines 0 comments Download
M services/ui/ws/window_server.h View 1 chunk +1 line, -3 lines 0 comments Download
M services/ui/ws/window_server.cc View 1 2 3 3 chunks +7 lines, -11 lines 0 comments Download
M services/ui/ws/window_tree.h View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M services/ui/ws/window_tree.cc View 1 2 3 2 chunks +4 lines, -6 lines 0 comments Download
M services/ui/ws/window_tree_client_unittest.cc View 1 chunk +2 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.h View 1 2 3 4 2 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp View 1 2 3 4 1 chunk +9 lines, -15 lines 0 comments Download
M third_party/WebKit/public/blink_typemaps.gni View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/offscreencanvas/offscreen_canvas_surface.mojom View 1 2 3 4 2 chunks +2 lines, -4 lines 0 comments Download
M ui/aura/mus/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/mus/surface_id_handler.h View 2 chunks +5 lines, -13 lines 0 comments Download
M ui/aura/mus/window_mus.h View 3 chunks +6 lines, -3 lines 0 comments Download
M ui/aura/mus/window_port_mus.h View 3 chunks +3 lines, -3 lines 0 comments Download
M ui/aura/mus/window_port_mus.cc View 3 chunks +9 lines, -10 lines 0 comments Download
M ui/aura/mus/window_tree_client.h View 1 chunk +1 line, -3 lines 0 comments Download
M ui/aura/mus/window_tree_client.cc View 1 chunk +2 lines, -8 lines 0 comments Download

Messages

Total messages: 33 (22 generated)
Fady Samuel
+jbauman@ for cc +tsepez@ for mojo / ipc +jam@ for content/ +sky@ for services and ...
3 years, 11 months ago (2017-01-03 21:00:44 UTC) #8
Tom Sepez
LGTM since this is just shuffling existing fields around, but where do we validate frame_size ...
3 years, 11 months ago (2017-01-03 21:14:06 UTC) #9
Fady Samuel
On 2017/01/03 21:14:06, Tom Sepez wrote: > LGTM since this is just shuffling existing fields ...
3 years, 11 months ago (2017-01-03 21:17:03 UTC) #10
sky
LGTM https://codereview.chromium.org/2610723002/diff/60001/services/ui/public/interfaces/window_tree.mojom File services/ui/public/interfaces/window_tree.mojom (right): https://codereview.chromium.org/2610723002/diff/60001/services/ui/public/interfaces/window_tree.mojom#newcode7 services/ui/public/interfaces/window_tree.mojom:7: import "cc/ipc/surface_info.mojom"; sort
3 years, 11 months ago (2017-01-03 23:22:06 UTC) #15
Fady Samuel
+junov@ for offscreen canvas things.
3 years, 11 months ago (2017-01-03 23:28:03 UTC) #17
jbauman
lgtm
3 years, 11 months ago (2017-01-03 23:32:27 UTC) #20
jam
lgtm
3 years, 11 months ago (2017-01-03 23:46:59 UTC) #21
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/2610723002/80001
3 years, 11 months ago (2017-01-04 02:34:47 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:80001)
3 years, 11 months ago (2017-01-04 02:42:08 UTC) #29
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/96795520bafe2e33f755948f2d732cb42d10504a Cr-Commit-Position: refs/heads/master@{#441301}
3 years, 11 months ago (2017-01-04 02:45:53 UTC) #31
Justin Novosad
3 years, 11 months ago (2017-01-06 20:11:44 UTC) #33
Message was sent while issue was closed.
+xlai as FYI

Powered by Google App Engine
This is Rietveld 408576698