| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 switches::kOzonePlatform, | 169 switches::kOzonePlatform, |
| 170 #endif | 170 #endif |
| 171 #if defined(USE_X11) && !defined(OS_CHROMEOS) | 171 #if defined(USE_X11) && !defined(OS_CHROMEOS) |
| 172 switches::kX11Display, | 172 switches::kX11Display, |
| 173 #endif | 173 #endif |
| 174 switches::kGpuTestingGLVendor, | 174 switches::kGpuTestingGLVendor, |
| 175 switches::kGpuTestingGLRenderer, | 175 switches::kGpuTestingGLRenderer, |
| 176 switches::kGpuTestingGLVersion, | 176 switches::kGpuTestingGLVersion, |
| 177 switches::kDisableGpuDriverBugWorkarounds, | 177 switches::kDisableGpuDriverBugWorkarounds, |
| 178 switches::kUsePassthroughCmdDecoder, | 178 switches::kUsePassthroughCmdDecoder, |
| 179 switches::kEnableHDR}; | 179 switches::kEnableHDR, |
| 180 switches::kIgnoreGpuBlacklist}; |
| 180 | 181 |
| 181 enum GPUProcessLifetimeEvent { | 182 enum GPUProcessLifetimeEvent { |
| 182 LAUNCHED, | 183 LAUNCHED, |
| 183 DIED_FIRST_TIME, | 184 DIED_FIRST_TIME, |
| 184 DIED_SECOND_TIME, | 185 DIED_SECOND_TIME, |
| 185 DIED_THIRD_TIME, | 186 DIED_THIRD_TIME, |
| 186 DIED_FOURTH_TIME, | 187 DIED_FOURTH_TIME, |
| 187 GPU_PROCESS_LIFETIME_EVENT_MAX = 100 | 188 GPU_PROCESS_LIFETIME_EVENT_MAX = 100 |
| 188 }; | 189 }; |
| 189 | 190 |
| (...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1248 GetShaderCacheFactorySingleton()->Get(client_id); | 1249 GetShaderCacheFactorySingleton()->Get(client_id); |
| 1249 if (!cache.get()) | 1250 if (!cache.get()) |
| 1250 return; | 1251 return; |
| 1251 | 1252 |
| 1252 cache->set_shader_loaded_callback(base::Bind(&HostLoadedShader, host_id_)); | 1253 cache->set_shader_loaded_callback(base::Bind(&HostLoadedShader, host_id_)); |
| 1253 | 1254 |
| 1254 client_id_to_shader_cache_[client_id] = cache; | 1255 client_id_to_shader_cache_[client_id] = cache; |
| 1255 } | 1256 } |
| 1256 | 1257 |
| 1257 } // namespace content | 1258 } // namespace content |
| OLD | NEW |