| 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 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1103 switches::kDisableLogging, | 1103 switches::kDisableLogging, |
| 1104 switches::kDisableSeccompFilterSandbox, | 1104 switches::kDisableSeccompFilterSandbox, |
| 1105 #if defined(ENABLE_WEBRTC) | 1105 #if defined(ENABLE_WEBRTC) |
| 1106 switches::kDisableWebRtcHWEncoding, | 1106 switches::kDisableWebRtcHWEncoding, |
| 1107 #endif | 1107 #endif |
| 1108 switches::kEnableLogging, | 1108 switches::kEnableLogging, |
| 1109 switches::kEnableShareGroupAsyncTextureUpload, | 1109 switches::kEnableShareGroupAsyncTextureUpload, |
| 1110 switches::kGpuStartupDialog, | 1110 switches::kGpuStartupDialog, |
| 1111 switches::kGpuSandboxAllowSysVShm, | 1111 switches::kGpuSandboxAllowSysVShm, |
| 1112 switches::kGpuSandboxFailuresFatal, | 1112 switches::kGpuSandboxFailuresFatal, |
| 1113 switches::kGpuSandboxStartAfterInitialization, |
| 1113 switches::kLoggingLevel, | 1114 switches::kLoggingLevel, |
| 1114 switches::kNoSandbox, | 1115 switches::kNoSandbox, |
| 1115 switches::kTestGLLib, | 1116 switches::kTestGLLib, |
| 1116 switches::kTraceStartup, | 1117 switches::kTraceStartup, |
| 1117 switches::kV, | 1118 switches::kV, |
| 1118 switches::kVModule, | 1119 switches::kVModule, |
| 1119 #if defined(OS_MACOSX) | 1120 #if defined(OS_MACOSX) |
| 1120 switches::kEnableSandboxLogging, | 1121 switches::kEnableSandboxLogging, |
| 1121 #endif | 1122 #endif |
| 1122 #if defined(USE_AURA) | 1123 #if defined(USE_AURA) |
| (...skipping 113 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 |