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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <list> | 10 #include <list> |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 switches::kEnableHeapProfiling, | 127 switches::kEnableHeapProfiling, |
128 switches::kEnableLogging, | 128 switches::kEnableLogging, |
129 #if defined(OS_CHROMEOS) | 129 #if defined(OS_CHROMEOS) |
130 switches::kDisableVaapiAcceleratedVideoEncode, | 130 switches::kDisableVaapiAcceleratedVideoEncode, |
131 #endif | 131 #endif |
132 switches::kGpuDriverBugWorkarounds, | 132 switches::kGpuDriverBugWorkarounds, |
133 switches::kGpuStartupDialog, | 133 switches::kGpuStartupDialog, |
134 switches::kGpuSandboxAllowSysVShm, | 134 switches::kGpuSandboxAllowSysVShm, |
135 switches::kGpuSandboxFailuresFatal, | 135 switches::kGpuSandboxFailuresFatal, |
136 switches::kGpuSandboxStartEarly, | 136 switches::kGpuSandboxStartEarly, |
| 137 switches::kHeadless, |
137 switches::kLoggingLevel, | 138 switches::kLoggingLevel, |
138 switches::kEnableLowEndDeviceMode, | 139 switches::kEnableLowEndDeviceMode, |
139 switches::kDisableLowEndDeviceMode, | 140 switches::kDisableLowEndDeviceMode, |
140 switches::kEnableMemoryBenchmarking, | 141 switches::kEnableMemoryBenchmarking, |
141 switches::kNoSandbox, | 142 switches::kNoSandbox, |
142 switches::kProfilerTiming, | 143 switches::kProfilerTiming, |
143 switches::kTestGLLib, | 144 switches::kTestGLLib, |
144 switches::kTraceConfigFile, | 145 switches::kTraceConfigFile, |
145 switches::kTraceStartup, | 146 switches::kTraceStartup, |
146 switches::kTraceToConsole, | 147 switches::kTraceToConsole, |
(...skipping 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1191 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1192 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
1192 ClientIdToShaderCacheMap::iterator iter = | 1193 ClientIdToShaderCacheMap::iterator iter = |
1193 client_id_to_shader_cache_.find(client_id); | 1194 client_id_to_shader_cache_.find(client_id); |
1194 // If the cache doesn't exist then this is an off the record profile. | 1195 // If the cache doesn't exist then this is an off the record profile. |
1195 if (iter == client_id_to_shader_cache_.end()) | 1196 if (iter == client_id_to_shader_cache_.end()) |
1196 return; | 1197 return; |
1197 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1198 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
1198 } | 1199 } |
1199 | 1200 |
1200 } // namespace content | 1201 } // namespace content |
OLD | NEW |