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

Unified Diff: content/browser/gpu/gpu_process_host.cc

Issue 2224063002: Use persistent memory for receiving metrics from sub-processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 4 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
Index: content/browser/gpu/gpu_process_host.cc
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc
index a12b1c652e863f9bb72a92a3f1445eeefe622757..190d708ce969a16007de12de3a0ac3381ec3a2f0 100644
--- a/content/browser/gpu/gpu_process_host.cc
+++ b/content/browser/gpu/gpu_process_host.cc
@@ -438,8 +438,11 @@ GpuProcessHost::GpuProcessHost(int host_id, GpuProcessKind kind)
FROM_HERE,
base::Bind(base::IgnoreResult(&GpuProcessHostUIShim::Create), host_id));
+ // TODO(bcwhite): Update this with the correct memory size.
process_.reset(new BrowserChildProcessHostImpl(PROCESS_TYPE_GPU, this,
- child_token_));
+ child_token_,
+ 100 << 10 /* 100 KiB */,
+ "GpuMetrics"));
}
GpuProcessHost::~GpuProcessHost() {

Powered by Google App Engine
This is Rietveld 408576698