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

Side by Side Diff: content/browser/gpu/gpu_process_host.cc

Issue 1022703007: Simplify ChildProcessLauncher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@launcher
Patch Set: default arg, rebase Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « content/browser/child_process_launcher.cc ('k') | content/browser/plugin_process_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/gpu/gpu_process_host.h" 5 #include "content/browser/gpu/gpu_process_host.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/base_switches.h" 8 #include "base/base_switches.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after
931 UMA_HISTOGRAM_BOOLEAN("GPU.GPU.GPUProcessSoftwareRendering", 931 UMA_HISTOGRAM_BOOLEAN("GPU.GPU.GPUProcessSoftwareRendering",
932 swiftshader_rendering_); 932 swiftshader_rendering_);
933 933
934 // If specified, prepend a launcher program to the command line. 934 // If specified, prepend a launcher program to the command line.
935 if (!gpu_launcher.empty()) 935 if (!gpu_launcher.empty())
936 cmd_line->PrependWrapper(gpu_launcher); 936 cmd_line->PrependWrapper(gpu_launcher);
937 937
938 process_->Launch( 938 process_->Launch(
939 new GpuSandboxedProcessLauncherDelegate(cmd_line, 939 new GpuSandboxedProcessLauncherDelegate(cmd_line,
940 process_->GetHost()), 940 process_->GetHost()),
941 cmd_line); 941 cmd_line,
942 true);
942 process_launched_ = true; 943 process_launched_ = true;
943 944
944 UMA_HISTOGRAM_ENUMERATION("GPU.GPUProcessLifetimeEvents", 945 UMA_HISTOGRAM_ENUMERATION("GPU.GPUProcessLifetimeEvents",
945 LAUNCHED, GPU_PROCESS_LIFETIME_EVENT_MAX); 946 LAUNCHED, GPU_PROCESS_LIFETIME_EVENT_MAX);
946 return true; 947 return true;
947 } 948 }
948 949
949 void GpuProcessHost::SendOutstandingReplies() { 950 void GpuProcessHost::SendOutstandingReplies() {
950 valid_ = false; 951 valid_ = false;
951 // First send empty channel handles for all EstablishChannel requests. 952 // First send empty channel handles for all EstablishChannel requests.
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
1090 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); 1091 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader");
1091 ClientIdToShaderCacheMap::iterator iter = 1092 ClientIdToShaderCacheMap::iterator iter =
1092 client_id_to_shader_cache_.find(client_id); 1093 client_id_to_shader_cache_.find(client_id);
1093 // If the cache doesn't exist then this is an off the record profile. 1094 // If the cache doesn't exist then this is an off the record profile.
1094 if (iter == client_id_to_shader_cache_.end()) 1095 if (iter == client_id_to_shader_cache_.end())
1095 return; 1096 return;
1096 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); 1097 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader);
1097 } 1098 }
1098 1099
1099 } // namespace content 1100 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/child_process_launcher.cc ('k') | content/browser/plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698