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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 switches::kNoSandbox, | 136 switches::kNoSandbox, |
137 switches::kProfilerTiming, | 137 switches::kProfilerTiming, |
138 switches::kTestGLLib, | 138 switches::kTestGLLib, |
139 switches::kTraceConfigFile, | 139 switches::kTraceConfigFile, |
140 switches::kTraceStartup, | 140 switches::kTraceStartup, |
141 switches::kTraceToConsole, | 141 switches::kTraceToConsole, |
142 switches::kUseGpuInTests, | 142 switches::kUseGpuInTests, |
143 switches::kV, | 143 switches::kV, |
144 switches::kVModule, | 144 switches::kVModule, |
145 #if defined(OS_MACOSX) | 145 #if defined(OS_MACOSX) |
| 146 switches::kDisableAVFoundationOverlays, |
146 switches::kDisableRemoteCoreAnimation, | 147 switches::kDisableRemoteCoreAnimation, |
147 switches::kEnableSandboxLogging, | 148 switches::kEnableSandboxLogging, |
148 switches::kShowMacOverlayBorders, | 149 switches::kShowMacOverlayBorders, |
149 #endif | 150 #endif |
150 #if defined(USE_OZONE) | 151 #if defined(USE_OZONE) |
151 switches::kOzonePlatform, | 152 switches::kOzonePlatform, |
152 #endif | 153 #endif |
153 #if defined(USE_X11) && !defined(OS_CHROMEOS) | 154 #if defined(USE_X11) && !defined(OS_CHROMEOS) |
154 switches::kX11Display, | 155 switches::kX11Display, |
155 #endif | 156 #endif |
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1165 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1166 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
1166 ClientIdToShaderCacheMap::iterator iter = | 1167 ClientIdToShaderCacheMap::iterator iter = |
1167 client_id_to_shader_cache_.find(client_id); | 1168 client_id_to_shader_cache_.find(client_id); |
1168 // If the cache doesn't exist then this is an off the record profile. | 1169 // If the cache doesn't exist then this is an off the record profile. |
1169 if (iter == client_id_to_shader_cache_.end()) | 1170 if (iter == client_id_to_shader_cache_.end()) |
1170 return; | 1171 return; |
1171 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1172 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
1172 } | 1173 } |
1173 | 1174 |
1174 } // namespace content | 1175 } // namespace content |
OLD | NEW |