OLD | NEW |
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 1101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1112 cmd_line->AppendSwitchASCII(switches::kProcessType, switches::kGpuProcess); | 1112 cmd_line->AppendSwitchASCII(switches::kProcessType, switches::kGpuProcess); |
1113 cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id); | 1113 cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id); |
1114 | 1114 |
1115 if (kind_ == GPU_PROCESS_KIND_UNSANDBOXED) | 1115 if (kind_ == GPU_PROCESS_KIND_UNSANDBOXED) |
1116 cmd_line->AppendSwitch(switches::kDisableGpuSandbox); | 1116 cmd_line->AppendSwitch(switches::kDisableGpuSandbox); |
1117 | 1117 |
1118 // Propagate relevant command line switches. | 1118 // Propagate relevant command line switches. |
1119 static const char* const kSwitchNames[] = { | 1119 static const char* const kSwitchNames[] = { |
1120 switches::kDisableAcceleratedVideoDecode, | 1120 switches::kDisableAcceleratedVideoDecode, |
1121 switches::kDisableBreakpad, | 1121 switches::kDisableBreakpad, |
| 1122 switches::kDisableGLDrawingForTests, |
1122 switches::kDisableGLMultisampling, | 1123 switches::kDisableGLMultisampling, |
1123 switches::kDisableGpuSandbox, | 1124 switches::kDisableGpuSandbox, |
1124 switches::kDisableGpuWatchdog, | 1125 switches::kDisableGpuWatchdog, |
1125 switches::kDisableImageTransportSurface, | 1126 switches::kDisableImageTransportSurface, |
1126 switches::kDisableLogging, | 1127 switches::kDisableLogging, |
1127 switches::kDisableSeccompFilterSandbox, | 1128 switches::kDisableSeccompFilterSandbox, |
1128 #if defined(ENABLE_WEBRTC) | 1129 #if defined(ENABLE_WEBRTC) |
1129 switches::kDisableWebRtcHWEncoding, | 1130 switches::kDisableWebRtcHWEncoding, |
1130 #endif | 1131 #endif |
1131 switches::kEnableLogging, | 1132 switches::kEnableLogging, |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1265 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1266 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
1266 ClientIdToShaderCacheMap::iterator iter = | 1267 ClientIdToShaderCacheMap::iterator iter = |
1267 client_id_to_shader_cache_.find(client_id); | 1268 client_id_to_shader_cache_.find(client_id); |
1268 // If the cache doesn't exist then this is an off the record profile. | 1269 // If the cache doesn't exist then this is an off the record profile. |
1269 if (iter == client_id_to_shader_cache_.end()) | 1270 if (iter == client_id_to_shader_cache_.end()) |
1270 return; | 1271 return; |
1271 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1272 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
1272 } | 1273 } |
1273 | 1274 |
1274 } // namespace content | 1275 } // namespace content |
OLD | NEW |