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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 switches::kProfilerTiming, | 123 switches::kProfilerTiming, |
124 switches::kTestGLLib, | 124 switches::kTestGLLib, |
125 switches::kTraceConfigFile, | 125 switches::kTraceConfigFile, |
126 switches::kTraceStartup, | 126 switches::kTraceStartup, |
127 switches::kTraceToConsole, | 127 switches::kTraceToConsole, |
128 switches::kV, | 128 switches::kV, |
129 switches::kVModule, | 129 switches::kVModule, |
130 #if defined(OS_MACOSX) | 130 #if defined(OS_MACOSX) |
131 switches::kDisableRemoteCoreAnimation, | 131 switches::kDisableRemoteCoreAnimation, |
132 switches::kDisableMacOverlays, | 132 switches::kDisableMacOverlays, |
| 133 switches::kDisableVTAcceleratedVideoEncode, |
133 switches::kEnableSandboxLogging, | 134 switches::kEnableSandboxLogging, |
134 switches::kShowMacOverlayBorders, | 135 switches::kShowMacOverlayBorders, |
135 #endif | 136 #endif |
136 #if defined(USE_AURA) | 137 #if defined(USE_AURA) |
137 switches::kUIPrioritizeInGpuProcess, | 138 switches::kUIPrioritizeInGpuProcess, |
138 #endif | 139 #endif |
139 #if defined(USE_OZONE) | 140 #if defined(USE_OZONE) |
140 switches::kOzonePlatform, | 141 switches::kOzonePlatform, |
141 #endif | 142 #endif |
142 #if defined(USE_X11) && !defined(OS_CHROMEOS) | 143 #if defined(USE_X11) && !defined(OS_CHROMEOS) |
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1143 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1144 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
1144 ClientIdToShaderCacheMap::iterator iter = | 1145 ClientIdToShaderCacheMap::iterator iter = |
1145 client_id_to_shader_cache_.find(client_id); | 1146 client_id_to_shader_cache_.find(client_id); |
1146 // If the cache doesn't exist then this is an off the record profile. | 1147 // If the cache doesn't exist then this is an off the record profile. |
1147 if (iter == client_id_to_shader_cache_.end()) | 1148 if (iter == client_id_to_shader_cache_.end()) |
1148 return; | 1149 return; |
1149 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1150 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
1150 } | 1151 } |
1151 | 1152 |
1152 } // namespace content | 1153 } // namespace content |
OLD | NEW |