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

Issue 2385193002: FrameSinkIds use to WindowIds in window server, Process ID/Route ID in renderer (Closed)

Created:
4 years, 2 months ago by Fady Samuel
Modified:
4 years, 2 months ago
CC:
chromium-reviews, creis+watch_chromium.org, danakj+watch_chromium.org, darin-cc_chromium.org, jam, jbauman+watch_chromium.org, kalyank, nasko+codewatch_chromium.org, nona+watch_chromium.org, piman+watch_chromium.org, rjkroege, shuchen+watch_chromium.org, sievers+watch_chromium.org, James Su, tfarina, yusukes+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

FrameSinkIds are WindowIds in window server, Process ID/Route ID in renderer This CL places routing information in FrameSinkIds. That way a new surface can be routed to the appropriate FrameSinkObserver from the display compositor. In Chrome, the FrameSinkId contains the ProcessId/RoutingId. FrameSinks that are not owned by renderers have a client_id = 0, and the sink_id is set by AllocateFrameSinkId(). In Mus+Ash, each ServerWindowSurface gets a unique FrameSinkId. The client_id is the WindowId, and the sink_id is the surface type. Once the underlay surface goes away, the FrameSinkId will simply be the window ID. BUG=647852 TBR=junov@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/fcbcef7b01cb6b898174856e7fe8970c4e501471 Cr-Commit-Position: refs/heads/master@{#423089}

Patch Set 1 #

Patch Set 2 : FrameSinkIds refer to WindowIds in window server, and RenderProcess ID/Routing ID in renderer #

Total comments: 2

Patch Set 3 : Use TransportId #

Patch Set 4 : Fix GuestView test failure #

Patch Set 5 : Make child window have unique WindowId in FrameGenerator test #

Patch Set 6 : Plumb SinkId into OffscreenCanvas #

Patch Set 7 : Added missing serialization #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -32 lines) Patch
M content/browser/compositor/gpu_process_transport_factory.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/compositor/gpu_process_transport_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.cc View 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 1 chunk +10 lines, -2 lines 0 comments Download
M services/ui/ws/frame_generator_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M services/ui/ws/server_window_surface.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/ws/server_window_surface.cc View 1 1 chunk +2 lines, -5 lines 0 comments Download
M services/ui/ws/server_window_surface_manager.cc View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp View 1 2 3 4 5 6 chunks +10 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueDeserializer.cpp View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.cpp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h View 1 2 3 4 5 2 chunks +7 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h View 1 2 3 4 5 1 chunk +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/mus/surface_context_factory.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/mus/surface_context_factory.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 47 (27 generated)
Fady Samuel
+enne@ for content bits. +sky@ for uni and services/ui bits.
4 years, 2 months ago (2016-10-04 02:15:09 UTC) #6
Fady Samuel
+enne@ for content bits. +sky@ for uni and services/ui bits.
4 years, 2 months ago (2016-10-04 02:15:09 UTC) #7
sky
Does this mean we would expose server ids (via the surface id)? I think it ...
4 years, 2 months ago (2016-10-04 16:47:27 UTC) #8
sky
LGTM - but this means we're exposing the unique id for windows to clients. +tsepez ...
4 years, 2 months ago (2016-10-04 17:03:32 UTC) #10
Tom Sepez
My recollection is that there wasn't much entropy in the unique_id (e.g. its sequential, not ...
4 years, 2 months ago (2016-10-04 17:35:10 UTC) #11
Fady Samuel
On 2016/10/04 17:35:10, Tom Sepez wrote: > My recollection is that there wasn't much entropy ...
4 years, 2 months ago (2016-10-04 17:39:07 UTC) #12
Tom Sepez
On 2016/10/04 17:39:07, Fady Samuel wrote: > On 2016/10/04 17:35:10, Tom Sepez wrote: > > ...
4 years, 2 months ago (2016-10-04 17:42:28 UTC) #13
sky
https://codereview.chromium.org/2385193002/diff/20001/services/ui/ws/ids.h File services/ui/ws/ids.h (right): https://codereview.chromium.org/2385193002/diff/20001/services/ui/ws/ids.h#newcode56 services/ui/ws/ids.h:56: operator uint32_t() const { Actually, one comment. Style guide ...
4 years, 2 months ago (2016-10-04 17:50:53 UTC) #14
enne (OOO)
lgtm
4 years, 2 months ago (2016-10-04 18:26:14 UTC) #15
Fady Samuel
PTAL sky@ https://codereview.chromium.org/2385193002/diff/20001/services/ui/ws/ids.h File services/ui/ws/ids.h (right): https://codereview.chromium.org/2385193002/diff/20001/services/ui/ws/ids.h#newcode56 services/ui/ws/ids.h:56: operator uint32_t() const { On 2016/10/04 17:50:53, ...
4 years, 2 months ago (2016-10-04 19:31:57 UTC) #16
Fady Samuel
+jam@ for content stamp
4 years, 2 months ago (2016-10-04 21:37:55 UTC) #22
jam
lgtm
4 years, 2 months ago (2016-10-04 21:40:30 UTC) #24
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/2385193002/80001
4 years, 2 months ago (2016-10-04 22:52:17 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/305433)
4 years, 2 months ago (2016-10-04 23:48:18 UTC) #32
Fady Samuel
TBR'ing junov@ for sinkId plumbing into offscreencanvas.
4 years, 2 months ago (2016-10-05 03:40:00 UTC) #34
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/2385193002/100001
4 years, 2 months ago (2016-10-05 03:41:02 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/310169)
4 years, 2 months ago (2016-10-05 04:47:06 UTC) #40
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/2385193002/120001
4 years, 2 months ago (2016-10-05 05:06:57 UTC) #43
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 2 months ago (2016-10-05 06:29:08 UTC) #45
commit-bot: I haz the power
4 years, 2 months ago (2016-10-05 06:32:50 UTC) #47
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/fcbcef7b01cb6b898174856e7fe8970c4e501471
Cr-Commit-Position: refs/heads/master@{#423089}

Powered by Google App Engine
This is Rietveld 408576698