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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 switches::kOzonePlatform, | 151 switches::kOzonePlatform, |
152 #endif | 152 #endif |
153 #if defined(USE_X11) && !defined(OS_CHROMEOS) | 153 #if defined(USE_X11) && !defined(OS_CHROMEOS) |
154 switches::kWindowDepth, | 154 switches::kWindowDepth, |
155 switches::kX11Display, | 155 switches::kX11Display, |
156 switches::kX11VisualID, | 156 switches::kX11VisualID, |
157 #endif | 157 #endif |
158 switches::kGpuTestingGLVendor, | 158 switches::kGpuTestingGLVendor, |
159 switches::kGpuTestingGLRenderer, | 159 switches::kGpuTestingGLRenderer, |
160 switches::kGpuTestingGLVersion, | 160 switches::kGpuTestingGLVersion, |
| 161 switches::kDisableGpuDriverBugWorkarounds |
161 }; | 162 }; |
162 | 163 |
163 enum GPUProcessLifetimeEvent { | 164 enum GPUProcessLifetimeEvent { |
164 LAUNCHED, | 165 LAUNCHED, |
165 DIED_FIRST_TIME, | 166 DIED_FIRST_TIME, |
166 DIED_SECOND_TIME, | 167 DIED_SECOND_TIME, |
167 DIED_THIRD_TIME, | 168 DIED_THIRD_TIME, |
168 DIED_FOURTH_TIME, | 169 DIED_FOURTH_TIME, |
169 GPU_PROCESS_LIFETIME_EVENT_MAX = 100 | 170 GPU_PROCESS_LIFETIME_EVENT_MAX = 100 |
170 }; | 171 }; |
(...skipping 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1202 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1203 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
1203 ClientIdToShaderCacheMap::iterator iter = | 1204 ClientIdToShaderCacheMap::iterator iter = |
1204 client_id_to_shader_cache_.find(client_id); | 1205 client_id_to_shader_cache_.find(client_id); |
1205 // If the cache doesn't exist then this is an off the record profile. | 1206 // If the cache doesn't exist then this is an off the record profile. |
1206 if (iter == client_id_to_shader_cache_.end()) | 1207 if (iter == client_id_to_shader_cache_.end()) |
1207 return; | 1208 return; |
1208 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1209 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
1209 } | 1210 } |
1210 | 1211 |
1211 } // namespace content | 1212 } // namespace content |
OLD | NEW |