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 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1101 // Propagate relevant command line switches. | 1101 // Propagate relevant command line switches. |
1102 static const char* const kSwitchNames[] = { | 1102 static const char* const kSwitchNames[] = { |
1103 switches::kDisableAcceleratedVideoDecode, | 1103 switches::kDisableAcceleratedVideoDecode, |
1104 switches::kDisableBreakpad, | 1104 switches::kDisableBreakpad, |
1105 switches::kDisableGLMultisampling, | 1105 switches::kDisableGLMultisampling, |
1106 switches::kDisableGpuSandbox, | 1106 switches::kDisableGpuSandbox, |
1107 switches::kDisableGpuWatchdog, | 1107 switches::kDisableGpuWatchdog, |
1108 switches::kDisableImageTransportSurface, | 1108 switches::kDisableImageTransportSurface, |
1109 switches::kDisableLogging, | 1109 switches::kDisableLogging, |
1110 switches::kDisableSeccompFilterSandbox, | 1110 switches::kDisableSeccompFilterSandbox, |
| 1111 switches::kDisableWebRtcHWEncoding, |
1111 switches::kEnableLogging, | 1112 switches::kEnableLogging, |
1112 switches::kEnableShareGroupAsyncTextureUpload, | 1113 switches::kEnableShareGroupAsyncTextureUpload, |
1113 switches::kGpuStartupDialog, | 1114 switches::kGpuStartupDialog, |
1114 switches::kGpuSandboxAllowSysVShm, | 1115 switches::kGpuSandboxAllowSysVShm, |
1115 switches::kLoggingLevel, | 1116 switches::kLoggingLevel, |
1116 switches::kNoSandbox, | 1117 switches::kNoSandbox, |
1117 switches::kReduceGpuSandbox, | 1118 switches::kReduceGpuSandbox, |
1118 switches::kTestGLLib, | 1119 switches::kTestGLLib, |
1119 switches::kTraceStartup, | 1120 switches::kTraceStartup, |
1120 switches::kV, | 1121 switches::kV, |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1237 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1238 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
1238 ClientIdToShaderCacheMap::iterator iter = | 1239 ClientIdToShaderCacheMap::iterator iter = |
1239 client_id_to_shader_cache_.find(client_id); | 1240 client_id_to_shader_cache_.find(client_id); |
1240 // If the cache doesn't exist then this is an off the record profile. | 1241 // If the cache doesn't exist then this is an off the record profile. |
1241 if (iter == client_id_to_shader_cache_.end()) | 1242 if (iter == client_id_to_shader_cache_.end()) |
1242 return; | 1243 return; |
1243 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1244 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
1244 } | 1245 } |
1245 | 1246 |
1246 } // namespace content | 1247 } // namespace content |
OLD | NEW |