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

Issue 2527443002: Display Compositor: Allocate LocalFrameId in client. (Closed)

Created:
4 years ago by Fady Samuel
Modified:
4 years ago
CC:
jbroman, Aaron Boodman, abarth-chromium, ajuma+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, dglazkov+blink, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jam, Justin Novosad, kalyank, pdr+graphicswatchlist_chromium.org, qsr+mojo_chromium.org, rjkroege, rwlbuis, Stephen Chennney, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Display Compositor: Towards allocating SurfaceIds in the client Currently, SurfaceIds are allocated in Mus or in the browser process. This CL takes us a few steps towards being able to allocate SurfaceIds (in particular, the LocalFrameId component of the SurfaceId) in the client. 1. MojoCompositorFrameSink::SubmitCompositorFrame is updated to take in a LocalFrameId. Offscreen canvas and the mus client library is updated to use this new signature. 2. GpuCompositorFrameSink is updated to assume new LocalFrameIds will be allocated in the client instead. BUG=664547, 627283 TBR=piman@chromium.org for new DEPS on surface_id_allocator.h CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Committed: https://crrev.com/e3d2888a771050099facf2b18c3d72b4922c9581 Cr-Commit-Position: refs/heads/master@{#434091}

Patch Set 1 #

Patch Set 2 : Updated #

Total comments: 2

Patch Set 3 : Addressed rjkroege@'s comment #

Total comments: 3

Patch Set 4 : Fix android build #

Patch Set 5 : Addressed sadrul's comment #

Total comments: 10

Patch Set 6 : Addressed Sadrul's comments #

Patch Set 7 : Fix android_webview #

Patch Set 8 : Rebased + Restored BUILD files #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -34 lines) Patch
M cc/ipc/mojo_compositor_frame_sink.mojom View 1 2 2 chunks +6 lines, -2 lines 0 comments Download
M content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/public/cpp/window_compositor_frame_sink.h View 4 chunks +9 lines, -9 lines 0 comments Download
M services/ui/public/cpp/window_compositor_frame_sink.cc View 1 2 3 4 5 1 chunk +11 lines, -1 line 0 comments Download
M services/ui/surfaces/gpu_compositor_frame_sink.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -3 lines 0 comments Download
M services/ui/surfaces/gpu_compositor_frame_sink.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -6 lines 0 comments Download
M services/ui/ws/frame_generator.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M services/ui/ws/frame_generator.cc View 1 2 3 4 5 6 7 1 chunk +9 lines, -1 line 0 comments Download
M services/ui/ws/window_tree_client_unittest.cc View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/blink_typemaps.gni View 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/mus/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/mus/window_compositor_frame_sink.h View 3 chunks +7 lines, -6 lines 0 comments Download
M ui/aura/mus/window_compositor_frame_sink.cc View 1 2 3 4 1 chunk +12 lines, -3 lines 0 comments Download

Messages

Total messages: 71 (41 generated)
Fady Samuel
4 years ago (2016-11-22 18:12:20 UTC) #9
rjkroege
lgtm https://codereview.chromium.org/2527443002/diff/20001/cc/ipc/mojo_compositor_frame_sink.mojom File cc/ipc/mojo_compositor_frame_sink.mojom (right): https://codereview.chromium.org/2527443002/diff/20001/cc/ipc/mojo_compositor_frame_sink.mojom#newcode29 cc/ipc/mojo_compositor_frame_sink.mojom:29: SubmitCompositorFrame(cc.mojom.LocalFrameId local_frame_id, Could you document the parameters?
4 years ago (2016-11-22 18:34:02 UTC) #11
rjkroege
lgtm https://codereview.chromium.org/2527443002/diff/20001/cc/ipc/mojo_compositor_frame_sink.mojom File cc/ipc/mojo_compositor_frame_sink.mojom (right): https://codereview.chromium.org/2527443002/diff/20001/cc/ipc/mojo_compositor_frame_sink.mojom#newcode29 cc/ipc/mojo_compositor_frame_sink.mojom:29: SubmitCompositorFrame(cc.mojom.LocalFrameId local_frame_id, Could you document the parameters?
4 years ago (2016-11-22 18:34:03 UTC) #12
Fady Samuel
+piman@ for cc +tsepez@ for mojom +xlai@/junov@ for canvas things +sky@ for services/ui and ui/ ...
4 years ago (2016-11-22 18:39:58 UTC) #14
Tom Sepez
This makes these IDs, in some sense, less trustworthy. What happens if a client fakes ...
4 years ago (2016-11-22 18:47:59 UTC) #17
Fady Samuel
On 2016/11/22 18:47:59, Tom Sepez wrote: > This makes these IDs, in some sense, less ...
4 years ago (2016-11-22 18:52:49 UTC) #18
sadrul
https://codereview.chromium.org/2527443002/diff/40001/ui/aura/mus/window_compositor_frame_sink.cc File ui/aura/mus/window_compositor_frame_sink.cc (right): https://codereview.chromium.org/2527443002/diff/40001/ui/aura/mus/window_compositor_frame_sink.cc#newcode69 ui/aura/mus/window_compositor_frame_sink.cc:69: if (!frame.render_pass_list.empty()) Is it valid for a frame to ...
4 years ago (2016-11-22 19:22:25 UTC) #21
Fady Samuel
https://codereview.chromium.org/2527443002/diff/40001/ui/aura/mus/window_compositor_frame_sink.cc File ui/aura/mus/window_compositor_frame_sink.cc (right): https://codereview.chromium.org/2527443002/diff/40001/ui/aura/mus/window_compositor_frame_sink.cc#newcode69 ui/aura/mus/window_compositor_frame_sink.cc:69: if (!frame.render_pass_list.empty()) On 2016/11/22 19:22:25, sadrul wrote: > Is ...
4 years ago (2016-11-22 19:24:38 UTC) #22
sadrul
https://codereview.chromium.org/2527443002/diff/40001/ui/aura/mus/window_compositor_frame_sink.cc File ui/aura/mus/window_compositor_frame_sink.cc (right): https://codereview.chromium.org/2527443002/diff/40001/ui/aura/mus/window_compositor_frame_sink.cc#newcode69 ui/aura/mus/window_compositor_frame_sink.cc:69: if (!frame.render_pass_list.empty()) On 2016/11/22 19:24:38, Fady Samuel wrote: > ...
4 years ago (2016-11-22 19:25:48 UTC) #23
Fady Samuel
On 2016/11/22 19:25:48, sadrul wrote: > https://codereview.chromium.org/2527443002/diff/40001/ui/aura/mus/window_compositor_frame_sink.cc > File ui/aura/mus/window_compositor_frame_sink.cc (right): > > https://codereview.chromium.org/2527443002/diff/40001/ui/aura/mus/window_compositor_frame_sink.cc#newcode69 > ...
4 years ago (2016-11-22 19:28:11 UTC) #24
Tom Sepez
lgtm
4 years ago (2016-11-22 19:33:32 UTC) #25
sadrul
On 2016/11/22 19:28:11, Fady Samuel wrote: > On 2016/11/22 19:25:48, sadrul wrote: > > > ...
4 years ago (2016-11-22 19:45:19 UTC) #28
Fady Samuel
Ohh I see, PTAL sadrul@. Agreed.
4 years ago (2016-11-22 19:49:50 UTC) #29
sadrul
Some nits. A couple of questions. lgtm with those addressed. https://codereview.chromium.org/2527443002/diff/80001/content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc File content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc (right): https://codereview.chromium.org/2527443002/diff/80001/content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc#newcode48 ...
4 years ago (2016-11-22 19:53:30 UTC) #32
Fady Samuel
PTAL piman@, junov@, sky@! Thanks! https://codereview.chromium.org/2527443002/diff/80001/content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc File content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc (right): https://codereview.chromium.org/2527443002/diff/80001/content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc#newcode48 content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc:48: const cc::LocalFrameId& local_frame_Id, On ...
4 years ago (2016-11-22 20:17:27 UTC) #36
Fady Samuel
junov@ is OOO, +jbroman@
4 years ago (2016-11-22 20:24:56 UTC) #39
Fady Samuel
+boliu@ for android_webview.
4 years ago (2016-11-22 20:44:43 UTC) #43
boliu
lgtm
4 years ago (2016-11-22 20:55:04 UTC) #44
sky
LGTM
4 years ago (2016-11-22 21:07:05 UTC) #45
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/2527443002/140001
4 years ago (2016-11-22 22:40:59 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/310951)
4 years ago (2016-11-22 23:17:11 UTC) #53
jbroman
platform lgtm
4 years ago (2016-11-23 00:25:08 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/2527443002/140001
4 years ago (2016-11-23 00:29:12 UTC) #56
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/311063)
4 years ago (2016-11-23 00:51:45 UTC) #58
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/2527443002/140001
4 years ago (2016-11-23 00:56:39 UTC) #60
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/311091)
4 years ago (2016-11-23 01:15:12 UTC) #62
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/2527443002/140001
4 years ago (2016-11-23 01:17:58 UTC) #65
piman
lgtm
4 years ago (2016-11-23 01:20:50 UTC) #66
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years ago (2016-11-23 02:38:15 UTC) #69
commit-bot: I haz the power
4 years ago (2016-11-23 02:41:12 UTC) #71
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/e3d2888a771050099facf2b18c3d72b4922c9581
Cr-Commit-Position: refs/heads/master@{#434091}

Powered by Google App Engine
This is Rietveld 408576698