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

Issue 2447143003: Use kRenderClientId command line flag when starting a render process (Closed)

Created:
4 years, 1 month ago by Alex Z.
Modified:
4 years, 1 month ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, nasko+codewatch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, einbinder+watch-test-runner_chromium.org, darin (slow to review), jochen+watch_chromium.org, mlamouri+watch-test-runner_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added a command line switch kRenderClientId. It holds the process ID of a browser process and is passed to a renderer process when the render process is created. RenderWidget stores the client ID into its client_id_ field and use it to construct a FrameSinkID when RenderWidgetCompositor is created in RenderWidget::InitializeLayerTreeView. This change should fix a bug where SurfaceSequence::frame_sink_id is empty in SurfaceLayer::SatisfyDestroySequence(). BUG=656639 Committed: https://crrev.com/067f5824a3d561b9a16774fed995c23b6854405f Cr-Commit-Position: refs/heads/master@{#430375}

Patch Set 1 #

Patch Set 2 : Removed unnecessary additions #

Total comments: 1

Patch Set 3 : Set client_id via a command line switch #

Total comments: 8

Patch Set 4 : Removed the client_id_ field from RenderWidget. RenderWidget::InitializeLayerTreeView() now gets cl… #

Total comments: 6

Patch Set 5 : Removed SetFrameSinkID IPC; Using base::StringToInt() instead of std::stoi() #

Total comments: 2

Patch Set 6 : Added RenderThread::GetClientId() to fix the problem where some tests don't have the kRendererClien… #

Total comments: 8

Patch Set 7 : Append the kRendererClientId flag when the renderer is running in-process) #

Patch Set 8 : Changes based on comments: removed unnecessary includes; additional checking for in GetClientId() f… #

Total comments: 4

Patch Set 9 : Changes based on comment #

Total comments: 4

Patch Set 10 : Added RenderThreadImpl::client_id_ to store client ID and avoid repetitive string parsing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -49 lines) Patch
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 1 chunk +0 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -12 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -18 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -4 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/renderer/render_thread.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/test/mock_render_thread.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/public/test/mock_render_thread.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 8 9 4 chunks +14 lines, -1 line 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -6 lines 0 comments Download

Messages

Total messages: 51 (32 generated)
Alex Z.
fsamuel@chromium.org: This CL adds FrameSinkId to CreateViewParams piman@chromium.org: Please do an owner review for my ...
4 years, 1 month ago (2016-10-26 14:42:40 UTC) #4
Fady Samuel
not lgtm https://codereview.chromium.org/2447143003/diff/20001/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://codereview.chromium.org/2447143003/diff/20001/content/renderer/render_widget.cc#newcode323 content/renderer/render_widget.cc:323: screen_info, frame_sink_id, false, hidden, This isn't right. ...
4 years, 1 month ago (2016-10-26 15:00:18 UTC) #5
Fady Samuel
https://codereview.chromium.org/2447143003/diff/40001/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://codereview.chromium.org/2447143003/diff/40001/content/renderer/render_widget.cc#newcode250 content/renderer/render_widget.cc:250: if (base::CommandLine::ForCurrentProcess()->HasSwitch( I see no point in saving this ...
4 years, 1 month ago (2016-10-27 20:15:55 UTC) #11
Alex Z.
https://codereview.chromium.org/2447143003/diff/40001/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://codereview.chromium.org/2447143003/diff/40001/content/renderer/render_widget.cc#newcode250 content/renderer/render_widget.cc:250: if (base::CommandLine::ForCurrentProcess()->HasSwitch( On 2016/10/27 20:15:55, Fady Samuel wrote: > ...
4 years, 1 month ago (2016-10-28 18:09:48 UTC) #14
Fady Samuel
https://codereview.chromium.org/2447143003/diff/60001/content/renderer/render_widget.cc File content/renderer/render_widget.cc (left): https://codereview.chromium.org/2447143003/diff/60001/content/renderer/render_widget.cc#oldcode1511 content/renderer/render_widget.cc:1511: void RenderWidget::OnSetFrameSinkId(const cc::FrameSinkId& frame_sink_id) { delete this and the ...
4 years, 1 month ago (2016-10-28 18:14:40 UTC) #15
Alex Z.
https://codereview.chromium.org/2447143003/diff/60001/content/renderer/render_widget.cc File content/renderer/render_widget.cc (left): https://codereview.chromium.org/2447143003/diff/60001/content/renderer/render_widget.cc#oldcode1511 content/renderer/render_widget.cc:1511: void RenderWidget::OnSetFrameSinkId(const cc::FrameSinkId& frame_sink_id) { On 2016/10/28 18:14:40, Fady ...
4 years, 1 month ago (2016-10-28 18:36:11 UTC) #18
Fady Samuel
https://codereview.chromium.org/2447143003/diff/80001/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc File content/browser/renderer_host/render_widget_host_view_aura_unittest.cc (left): https://codereview.chromium.org/2447143003/diff/80001/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc#oldcode4134 content/browser/renderer_host/render_widget_host_view_aura_unittest.cc:4134: TEST_F(RenderWidgetHostViewAuraTest, FrameSinkIdInitialized) { I don't see the point of ...
4 years, 1 month ago (2016-10-28 20:59:34 UTC) #25
Alex Z.
https://codereview.chromium.org/2447143003/diff/100001/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc File content/browser/renderer_host/render_widget_host_view_aura_unittest.cc (left): https://codereview.chromium.org/2447143003/diff/100001/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc#oldcode4134 content/browser/renderer_host/render_widget_host_view_aura_unittest.cc:4134: TEST_F(RenderWidgetHostViewAuraTest, FrameSinkIdInitialized) { On 2016/10/28 20:59:33, Fady Samuel wrote: ...
4 years, 1 month ago (2016-10-31 15:19:23 UTC) #32
Fady Samuel
https://codereview.chromium.org/2447143003/diff/140001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2447143003/diff/140001/content/renderer/render_thread_impl.cc#newcode1589 content/renderer/render_thread_impl.cc:1589: switches::kRendererClientId)) nit: braces here. https://codereview.chromium.org/2447143003/diff/140001/content/renderer/render_thread_impl.cc#newcode1591 content/renderer/render_thread_impl.cc:1591: int client_id; Initialize ...
4 years, 1 month ago (2016-10-31 15:32:38 UTC) #33
Alex Z.
https://codereview.chromium.org/2447143003/diff/140001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2447143003/diff/140001/content/renderer/render_thread_impl.cc#newcode1589 content/renderer/render_thread_impl.cc:1589: switches::kRendererClientId)) On 2016/10/31 15:32:38, Fady Samuel wrote: > nit: ...
4 years, 1 month ago (2016-10-31 15:41:33 UTC) #34
Fady Samuel
lgtm.
4 years, 1 month ago (2016-10-31 16:01:56 UTC) #35
Alex Z.
This CL has been redone since it was first uploaded. tseqez@: please review my changes ...
4 years, 1 month ago (2016-10-31 16:58:00 UTC) #36
Tom Sepez
RS LGTM on deleting messages.
4 years, 1 month ago (2016-10-31 20:12:00 UTC) #37
piman
https://codereview.chromium.org/2447143003/diff/160001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2447143003/diff/160001/content/renderer/render_thread_impl.cc#newcode1589 content/renderer/render_thread_impl.cc:1589: switches::kRendererClientId)) { nit: When would this happen? Only tests? ...
4 years, 1 month ago (2016-10-31 20:34:09 UTC) #38
Alex Z.
https://codereview.chromium.org/2447143003/diff/160001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2447143003/diff/160001/content/renderer/render_thread_impl.cc#newcode1589 content/renderer/render_thread_impl.cc:1589: switches::kRendererClientId)) { On 2016/10/31 20:34:09, piman wrote: > nit: ...
4 years, 1 month ago (2016-11-07 19:37:44 UTC) #40
piman
lgtm
4 years, 1 month ago (2016-11-07 20:02:34 UTC) #42
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/2447143003/180001
4 years, 1 month ago (2016-11-07 21:00:30 UTC) #47
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 1 month ago (2016-11-07 21:07:43 UTC) #49
commit-bot: I haz the power
4 years, 1 month ago (2016-11-07 21:19:16 UTC) #51
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/067f5824a3d561b9a16774fed995c23b6854405f
Cr-Commit-Position: refs/heads/master@{#430375}

Powered by Google App Engine
This is Rietveld 408576698