| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 switches::kGpuSandboxAllowSysVShm, | 106 switches::kGpuSandboxAllowSysVShm, |
| 107 switches::kGpuSandboxFailuresFatal, | 107 switches::kGpuSandboxFailuresFatal, |
| 108 switches::kGpuSandboxStartEarly, | 108 switches::kGpuSandboxStartEarly, |
| 109 switches::kLoggingLevel, | 109 switches::kLoggingLevel, |
| 110 switches::kEnableLowEndDeviceMode, | 110 switches::kEnableLowEndDeviceMode, |
| 111 switches::kDisableLowEndDeviceMode, | 111 switches::kDisableLowEndDeviceMode, |
| 112 switches::kEnableMemoryBenchmarking, | 112 switches::kEnableMemoryBenchmarking, |
| 113 switches::kNoSandbox, | 113 switches::kNoSandbox, |
| 114 switches::kProfilerTiming, | 114 switches::kProfilerTiming, |
| 115 switches::kTestGLLib, | 115 switches::kTestGLLib, |
| 116 switches::kTraceConfigFile, |
| 116 switches::kTraceStartup, | 117 switches::kTraceStartup, |
| 117 switches::kTraceToConsole, | 118 switches::kTraceToConsole, |
| 118 switches::kV, | 119 switches::kV, |
| 119 switches::kVModule, | 120 switches::kVModule, |
| 120 #if defined(OS_MACOSX) | 121 #if defined(OS_MACOSX) |
| 121 switches::kDisableRemoteCoreAnimation, | 122 switches::kDisableRemoteCoreAnimation, |
| 122 switches::kDisableMacOverlays, | 123 switches::kDisableMacOverlays, |
| 123 switches::kEnableSandboxLogging, | 124 switches::kEnableSandboxLogging, |
| 124 switches::kShowMacOverlayBorders, | 125 switches::kShowMacOverlayBorders, |
| 125 #endif | 126 #endif |
| (...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1147 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1148 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
| 1148 ClientIdToShaderCacheMap::iterator iter = | 1149 ClientIdToShaderCacheMap::iterator iter = |
| 1149 client_id_to_shader_cache_.find(client_id); | 1150 client_id_to_shader_cache_.find(client_id); |
| 1150 // If the cache doesn't exist then this is an off the record profile. | 1151 // If the cache doesn't exist then this is an off the record profile. |
| 1151 if (iter == client_id_to_shader_cache_.end()) | 1152 if (iter == client_id_to_shader_cache_.end()) |
| 1152 return; | 1153 return; |
| 1153 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1154 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
| 1154 } | 1155 } |
| 1155 | 1156 |
| 1156 } // namespace content | 1157 } // namespace content |
| OLD | NEW |