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 <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 #if defined(OS_ANDROID) | 108 #if defined(OS_ANDROID) |
109 switches::kEnableUnifiedMediaPipeline, | 109 switches::kEnableUnifiedMediaPipeline, |
110 #endif | 110 #endif |
111 #if defined(OS_CHROMEOS) | 111 #if defined(OS_CHROMEOS) |
112 switches::kDisableVaapiAcceleratedVideoEncode, | 112 switches::kDisableVaapiAcceleratedVideoEncode, |
113 #endif | 113 #endif |
114 switches::kGpuStartupDialog, | 114 switches::kGpuStartupDialog, |
115 switches::kGpuSandboxAllowSysVShm, | 115 switches::kGpuSandboxAllowSysVShm, |
116 switches::kGpuSandboxFailuresFatal, | 116 switches::kGpuSandboxFailuresFatal, |
117 switches::kGpuSandboxStartEarly, | 117 switches::kGpuSandboxStartEarly, |
| 118 switches::kGpuTestingGLVendor, |
| 119 switches::kGpuTestingGLRenderer, |
| 120 switches::kGpuTestingGLVersion, |
118 switches::kLoggingLevel, | 121 switches::kLoggingLevel, |
119 switches::kEnableLowEndDeviceMode, | 122 switches::kEnableLowEndDeviceMode, |
120 switches::kDisableLowEndDeviceMode, | 123 switches::kDisableLowEndDeviceMode, |
121 switches::kEnableMemoryBenchmarking, | 124 switches::kEnableMemoryBenchmarking, |
122 switches::kNoSandbox, | 125 switches::kNoSandbox, |
123 switches::kProfilerTiming, | 126 switches::kProfilerTiming, |
124 switches::kTestGLLib, | 127 switches::kTestGLLib, |
125 switches::kTraceConfigFile, | 128 switches::kTraceConfigFile, |
126 switches::kTraceStartup, | 129 switches::kTraceStartup, |
127 switches::kTraceToConsole, | 130 switches::kTraceToConsole, |
(...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1179 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1182 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
1180 ClientIdToShaderCacheMap::iterator iter = | 1183 ClientIdToShaderCacheMap::iterator iter = |
1181 client_id_to_shader_cache_.find(client_id); | 1184 client_id_to_shader_cache_.find(client_id); |
1182 // If the cache doesn't exist then this is an off the record profile. | 1185 // If the cache doesn't exist then this is an off the record profile. |
1183 if (iter == client_id_to_shader_cache_.end()) | 1186 if (iter == client_id_to_shader_cache_.end()) |
1184 return; | 1187 return; |
1185 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1188 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
1186 } | 1189 } |
1187 | 1190 |
1188 } // namespace content | 1191 } // namespace content |
OLD | NEW |