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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 switches::kOzonePlatform, | 154 switches::kOzonePlatform, |
155 #endif | 155 #endif |
156 #if defined(USE_X11) && !defined(OS_CHROMEOS) | 156 #if defined(USE_X11) && !defined(OS_CHROMEOS) |
157 switches::kWindowDepth, | 157 switches::kWindowDepth, |
158 switches::kX11Display, | 158 switches::kX11Display, |
159 switches::kX11VisualID, | 159 switches::kX11VisualID, |
160 #endif | 160 #endif |
161 switches::kGpuTestingGLVendor, | 161 switches::kGpuTestingGLVendor, |
162 switches::kGpuTestingGLRenderer, | 162 switches::kGpuTestingGLRenderer, |
163 switches::kGpuTestingGLVersion, | 163 switches::kGpuTestingGLVersion, |
| 164 switches::kDisableGpuDriverBugWorkarounds |
164 }; | 165 }; |
165 | 166 |
166 enum GPUProcessLifetimeEvent { | 167 enum GPUProcessLifetimeEvent { |
167 LAUNCHED, | 168 LAUNCHED, |
168 DIED_FIRST_TIME, | 169 DIED_FIRST_TIME, |
169 DIED_SECOND_TIME, | 170 DIED_SECOND_TIME, |
170 DIED_THIRD_TIME, | 171 DIED_THIRD_TIME, |
171 DIED_FOURTH_TIME, | 172 DIED_FOURTH_TIME, |
172 GPU_PROCESS_LIFETIME_EVENT_MAX = 100 | 173 GPU_PROCESS_LIFETIME_EVENT_MAX = 100 |
173 }; | 174 }; |
(...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1190 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1191 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
1191 ClientIdToShaderCacheMap::iterator iter = | 1192 ClientIdToShaderCacheMap::iterator iter = |
1192 client_id_to_shader_cache_.find(client_id); | 1193 client_id_to_shader_cache_.find(client_id); |
1193 // If the cache doesn't exist then this is an off the record profile. | 1194 // If the cache doesn't exist then this is an off the record profile. |
1194 if (iter == client_id_to_shader_cache_.end()) | 1195 if (iter == client_id_to_shader_cache_.end()) |
1195 return; | 1196 return; |
1196 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1197 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
1197 } | 1198 } |
1198 | 1199 |
1199 } // namespace content | 1200 } // namespace content |
OLD | NEW |