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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 switches::kOzonePlatform, | 149 switches::kOzonePlatform, |
150 #endif | 150 #endif |
151 #if defined(USE_X11) && !defined(OS_CHROMEOS) | 151 #if defined(USE_X11) && !defined(OS_CHROMEOS) |
152 switches::kWindowDepth, | 152 switches::kWindowDepth, |
153 switches::kX11Display, | 153 switches::kX11Display, |
154 switches::kX11VisualID, | 154 switches::kX11VisualID, |
155 #endif | 155 #endif |
156 switches::kGpuTestingGLVendor, | 156 switches::kGpuTestingGLVendor, |
157 switches::kGpuTestingGLRenderer, | 157 switches::kGpuTestingGLRenderer, |
158 switches::kGpuTestingGLVersion, | 158 switches::kGpuTestingGLVersion, |
| 159 switches::kDisableGpuDriverBugWorkarounds |
159 }; | 160 }; |
160 | 161 |
161 enum GPUProcessLifetimeEvent { | 162 enum GPUProcessLifetimeEvent { |
162 LAUNCHED, | 163 LAUNCHED, |
163 DIED_FIRST_TIME, | 164 DIED_FIRST_TIME, |
164 DIED_SECOND_TIME, | 165 DIED_SECOND_TIME, |
165 DIED_THIRD_TIME, | 166 DIED_THIRD_TIME, |
166 DIED_FOURTH_TIME, | 167 DIED_FOURTH_TIME, |
167 GPU_PROCESS_LIFETIME_EVENT_MAX = 100 | 168 GPU_PROCESS_LIFETIME_EVENT_MAX = 100 |
168 }; | 169 }; |
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1172 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1173 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
1173 ClientIdToShaderCacheMap::iterator iter = | 1174 ClientIdToShaderCacheMap::iterator iter = |
1174 client_id_to_shader_cache_.find(client_id); | 1175 client_id_to_shader_cache_.find(client_id); |
1175 // If the cache doesn't exist then this is an off the record profile. | 1176 // If the cache doesn't exist then this is an off the record profile. |
1176 if (iter == client_id_to_shader_cache_.end()) | 1177 if (iter == client_id_to_shader_cache_.end()) |
1177 return; | 1178 return; |
1178 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1179 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
1179 } | 1180 } |
1180 | 1181 |
1181 } // namespace content | 1182 } // namespace content |
OLD | NEW |