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