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

Unified Diff: content/renderer/render_widget.cc

Issue 2447143003: Use kRenderClientId command line flag when starting a render process (Closed)
Patch Set: Removed the client_id_ field from RenderWidget. RenderWidget::InitializeLayerTreeView() now gets cl… Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index 57bb2085f61e3f419307f96fb827956bc7ba7206..b5f3d773aac2680e62b90c5b46a243cf43c6e4c0 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -1114,6 +1114,13 @@ void RenderWidget::initializeLayerTreeView() {
compositor_->SetNeverVisible();
StartCompositor();
+ int32_t client_id = 0;
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
Fady Samuel 2016/10/28 18:14:40 DCHECK that we have the switch.
Alex Z. 2016/10/28 18:36:11 Done.
+ switches::kRendererClientId))
+ client_id =
+ std::stoi(base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
Fady Samuel 2016/10/28 18:14:40 Use base::StringToInt https://cs.chromium.org/chro
Alex Z. 2016/10/28 18:36:11 Done.
+ switches::kRendererClientId));
+ compositor_->SetFrameSinkId(cc::FrameSinkId(client_id, routing_id_));
}
void RenderWidget::WillCloseLayerTreeView() {
« no previous file with comments | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698