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

Issue 2691363002: Centralize FrameSinkId allocation in one place (Closed)

Created:
3 years, 10 months ago by xlai (Olivia)
Modified:
3 years, 10 months ago
Reviewers:
danakj, Fady Samuel, boliu
CC:
chromium-reviews, yusukes+watch_chromium.org, Ian Vollick, shuchen+watch_chromium.org, mac-reviews_chromium.org, jam, android-webview-reviews_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, cc-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Centralize FrameSinkId allocation in one place Currently the allocation of cc::FrameSinkId in render_host_view are scattered around for different platforms. This CL puts it all in RenderWidgetHostImpl. In addition, this CL introduced frame_sink_id_allocator so that there will be no duplicate id generation code in different context factories. BUG=685777 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2691363002 Cr-Commit-Position: refs/heads/master@{#452104} Committed: https://chromium.googlesource.com/chromium/src/+/cab2befb20c03d2d91eedf162e92ffe8db80e44f

Patch Set 1 #

Patch Set 2 : no gn check #

Patch Set 3 : android #

Total comments: 17

Patch Set 4 : fix based on comment #

Total comments: 8

Patch Set 5 : fix nits #

Total comments: 3

Patch Set 6 : explicit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -59 lines) Patch
M android_webview/browser/surfaces_instance.h View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M android_webview/browser/surfaces_instance.cc View 1 2 3 4 5 3 chunks +6 lines, -2 lines 0 comments Download
M cc/surfaces/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A cc/surfaces/frame_sink_id_allocator.h View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
M content/browser/compositor/gpu_process_transport_factory.h View 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/compositor/gpu_process_transport_factory.cc View 1 2 3 4 3 chunks +6 lines, -7 lines 0 comments Download
M content/browser/renderer_host/context_provider_factory_impl_android.h View 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/context_provider_factory_impl_android.cc View 1 2 3 4 3 chunks +6 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 2 chunks +21 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 1 chunk +2 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 chunk +2 lines, -12 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 chunk +1 line, -13 lines 0 comments Download
M ui/compositor/test/in_process_context_factory.h View 2 chunks +2 lines, -1 line 0 comments Download
M ui/compositor/test/in_process_context_factory.cc View 1 2 3 4 3 chunks +5 lines, -7 lines 0 comments Download

Messages

Total messages: 44 (26 generated)
xlai (Olivia)
danakj@chromium.org: Please review changes in cc/, content/browser/compositor, ui/compositor. boliu@chromium.org: Please review changes in android_webview/, content/browser/renderer_host/. ...
3 years, 10 months ago (2017-02-15 18:05:46 UTC) #19
boliu
nice, thanks for following up! https://codereview.chromium.org/2691363002/diff/60001/cc/surfaces/frame_sink_id_allocator.h File cc/surfaces/frame_sink_id_allocator.h (right): https://codereview.chromium.org/2691363002/diff/60001/cc/surfaces/frame_sink_id_allocator.h#newcode14 cc/surfaces/frame_sink_id_allocator.h:14: FrameSinkId NextFrameSinkId() { return ...
3 years, 10 months ago (2017-02-15 19:59:20 UTC) #20
danakj
https://codereview.chromium.org/2691363002/diff/60001/cc/surfaces/frame_sink_id_allocator.h File cc/surfaces/frame_sink_id_allocator.h (right): https://codereview.chromium.org/2691363002/diff/60001/cc/surfaces/frame_sink_id_allocator.h#newcode14 cc/surfaces/frame_sink_id_allocator.h:14: FrameSinkId NextFrameSinkId() { return FrameSinkId(0, next_sink_id_++); } On 2017/02/15 ...
3 years, 10 months ago (2017-02-15 20:18:10 UTC) #21
Fady Samuel
https://codereview.chromium.org/2691363002/diff/60001/android_webview/browser/surfaces_instance.cc File android_webview/browser/surfaces_instance.cc (right): https://codereview.chromium.org/2691363002/diff/60001/android_webview/browser/surfaces_instance.cc#newcode91 android_webview/browser/surfaces_instance.cc:91: return frame_sink_id_allocator_.NextFrameSinkId(); On 2017/02/15 18:05:46, xlai (Olivia) wrote: > ...
3 years, 10 months ago (2017-02-15 20:20:58 UTC) #22
Fady Samuel
https://codereview.chromium.org/2691363002/diff/60001/android_webview/browser/surfaces_instance.cc File android_webview/browser/surfaces_instance.cc (right): https://codereview.chromium.org/2691363002/diff/60001/android_webview/browser/surfaces_instance.cc#newcode91 android_webview/browser/surfaces_instance.cc:91: return frame_sink_id_allocator_.NextFrameSinkId(); On 2017/02/15 18:05:46, xlai (Olivia) wrote: > ...
3 years, 10 months ago (2017-02-15 20:20:59 UTC) #23
xlai (Olivia)
https://codereview.chromium.org/2691363002/diff/60001/cc/surfaces/frame_sink_id_allocator.h File cc/surfaces/frame_sink_id_allocator.h (right): https://codereview.chromium.org/2691363002/diff/60001/cc/surfaces/frame_sink_id_allocator.h#newcode12 cc/surfaces/frame_sink_id_allocator.h:12: class FrameSinkIdAllocator { On 2017/02/15 20:20:59, Fady Samuel wrote: ...
3 years, 10 months ago (2017-02-15 22:38:36 UTC) #24
boliu
lgtm https://codereview.chromium.org/2691363002/diff/80001/content/browser/compositor/gpu_process_transport_factory.cc File content/browser/compositor/gpu_process_transport_factory.cc (right): https://codereview.chromium.org/2691363002/diff/80001/content/browser/compositor/gpu_process_transport_factory.cc#newcode179 content/browser/compositor/gpu_process_transport_factory.cc:179: 0 /* client_id, not to conflict with the ...
3 years, 10 months ago (2017-02-15 23:58:56 UTC) #25
Fady Samuel
LGTM + nit https://codereview.chromium.org/2691363002/diff/80001/content/browser/compositor/gpu_process_transport_factory.cc File content/browser/compositor/gpu_process_transport_factory.cc (right): https://codereview.chromium.org/2691363002/diff/80001/content/browser/compositor/gpu_process_transport_factory.cc#newcode179 content/browser/compositor/gpu_process_transport_factory.cc:179: 0 /* client_id, not to conflict ...
3 years, 10 months ago (2017-02-17 14:00:24 UTC) #26
Fady Samuel
https://codereview.chromium.org/2691363002/diff/80001/cc/surfaces/frame_sink_id_allocator.h File cc/surfaces/frame_sink_id_allocator.h (right): https://codereview.chromium.org/2691363002/diff/80001/cc/surfaces/frame_sink_id_allocator.h#newcode13 cc/surfaces/frame_sink_id_allocator.h:13: // -increasing sink_id. nit: put the hyphen (the -) ...
3 years, 10 months ago (2017-02-17 14:01:52 UTC) #27
xlai (Olivia)
https://codereview.chromium.org/2691363002/diff/80001/cc/surfaces/frame_sink_id_allocator.h File cc/surfaces/frame_sink_id_allocator.h (right): https://codereview.chromium.org/2691363002/diff/80001/cc/surfaces/frame_sink_id_allocator.h#newcode13 cc/surfaces/frame_sink_id_allocator.h:13: // -increasing sink_id. On 2017/02/17 14:01:52, Fady Samuel wrote: ...
3 years, 10 months ago (2017-02-17 15:55:11 UTC) #28
Fady Samuel
Please pass this along to another cc OWNER as danakj is on vacation. https://codereview.chromium.org/2691363002/diff/100001/cc/surfaces/frame_sink_id_allocator.h File ...
3 years, 10 months ago (2017-02-17 16:00:30 UTC) #29
danakj
LGTM https://codereview.chromium.org/2691363002/diff/100001/cc/surfaces/frame_sink_id_allocator.h File cc/surfaces/frame_sink_id_allocator.h (right): https://codereview.chromium.org/2691363002/diff/100001/cc/surfaces/frame_sink_id_allocator.h#newcode16 cc/surfaces/frame_sink_id_allocator.h:16: constexpr FrameSinkIdAllocator(uint32_t client_id) On 2017/02/17 16:00:30, Fady Samuel ...
3 years, 10 months ago (2017-02-21 22:56:57 UTC) #34
xlai (Olivia)
https://codereview.chromium.org/2691363002/diff/100001/cc/surfaces/frame_sink_id_allocator.h File cc/surfaces/frame_sink_id_allocator.h (right): https://codereview.chromium.org/2691363002/diff/100001/cc/surfaces/frame_sink_id_allocator.h#newcode16 cc/surfaces/frame_sink_id_allocator.h:16: constexpr FrameSinkIdAllocator(uint32_t client_id) On 2017/02/21 22:56:56, danakj wrote: > ...
3 years, 10 months ago (2017-02-22 16:24:07 UTC) #35
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/2691363002/120001
3 years, 10 months ago (2017-02-22 16:24:30 UTC) #38
danakj
On Wed, Feb 22, 2017 at 11:24 AM, <xlai@chromium.org> wrote: > > https://codereview.chromium.org/2691363002/diff/100001/cc/ > surfaces/frame_sink_id_allocator.h ...
3 years, 10 months ago (2017-02-22 16:25:50 UTC) #39
xlai (Olivia)
On 2017/02/22 16:25:50, danakj wrote: > On Wed, Feb 22, 2017 at 11:24 AM, <mailto:xlai@chromium.org> ...
3 years, 10 months ago (2017-02-22 16:33:54 UTC) #40
danakj
On Wed, Feb 22, 2017 at 11:33 AM, <xlai@chromium.org> wrote: > On 2017/02/22 16:25:50, danakj ...
3 years, 10 months ago (2017-02-22 16:36:11 UTC) #41
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 17:18:54 UTC) #44
Message was sent while issue was closed.
Committed patchset #6 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/cab2befb20c03d2d91eedf162e92...

Powered by Google App Engine
This is Rietveld 408576698