| 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/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1148 switches::kDisableSeccompFilterSandbox, | 1148 switches::kDisableSeccompFilterSandbox, |
| 1149 switches::kEnableLogging, | 1149 switches::kEnableLogging, |
| 1150 switches::kEnableShareGroupAsyncTextureUpload, | 1150 switches::kEnableShareGroupAsyncTextureUpload, |
| 1151 switches::kEnableVirtualGLContexts, | 1151 switches::kEnableVirtualGLContexts, |
| 1152 switches::kGpuStartupDialog, | 1152 switches::kGpuStartupDialog, |
| 1153 switches::kLoggingLevel, | 1153 switches::kLoggingLevel, |
| 1154 switches::kNoSandbox, | 1154 switches::kNoSandbox, |
| 1155 switches::kReduceGpuSandbox, | 1155 switches::kReduceGpuSandbox, |
| 1156 switches::kTestGLLib, | 1156 switches::kTestGLLib, |
| 1157 switches::kTraceStartup, | 1157 switches::kTraceStartup, |
| 1158 switches::kUseExynosVda, | |
| 1159 switches::kV, | 1158 switches::kV, |
| 1160 switches::kVModule, | 1159 switches::kVModule, |
| 1161 #if defined(OS_MACOSX) | 1160 #if defined(OS_MACOSX) |
| 1162 switches::kEnableSandboxLogging, | 1161 switches::kEnableSandboxLogging, |
| 1163 #endif | 1162 #endif |
| 1164 #if defined(USE_AURA) | 1163 #if defined(USE_AURA) |
| 1165 switches::kUIPrioritizeInGpuProcess, | 1164 switches::kUIPrioritizeInGpuProcess, |
| 1166 #endif | 1165 #endif |
| 1167 }; | 1166 }; |
| 1168 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, | 1167 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1276 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1275 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
| 1277 ClientIdToShaderCacheMap::iterator iter = | 1276 ClientIdToShaderCacheMap::iterator iter = |
| 1278 client_id_to_shader_cache_.find(client_id); | 1277 client_id_to_shader_cache_.find(client_id); |
| 1279 // If the cache doesn't exist then this is an off the record profile. | 1278 // If the cache doesn't exist then this is an off the record profile. |
| 1280 if (iter == client_id_to_shader_cache_.end()) | 1279 if (iter == client_id_to_shader_cache_.end()) |
| 1281 return; | 1280 return; |
| 1282 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1281 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
| 1283 } | 1282 } |
| 1284 | 1283 |
| 1285 } // namespace content | 1284 } // namespace content |
| OLD | NEW |