| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 switches::kCreateDefaultGLContext, | 117 switches::kCreateDefaultGLContext, |
| 118 switches::kDisableAcceleratedVideoDecode, | 118 switches::kDisableAcceleratedVideoDecode, |
| 119 switches::kDisableBreakpad, | 119 switches::kDisableBreakpad, |
| 120 switches::kDisableES3GLContext, | 120 switches::kDisableES3GLContext, |
| 121 switches::kDisableGpuRasterization, | 121 switches::kDisableGpuRasterization, |
| 122 switches::kDisableGpuSandbox, | 122 switches::kDisableGpuSandbox, |
| 123 switches::kDisableGpuWatchdog, | 123 switches::kDisableGpuWatchdog, |
| 124 switches::kDisableGLExtensions, | 124 switches::kDisableGLExtensions, |
| 125 switches::kDisableLogging, | 125 switches::kDisableLogging, |
| 126 switches::kDisableSeccompFilterSandbox, | 126 switches::kDisableSeccompFilterSandbox, |
| 127 switches::kDisableShaderNameHashing, |
| 127 #if BUILDFLAG(ENABLE_WEBRTC) | 128 #if BUILDFLAG(ENABLE_WEBRTC) |
| 128 switches::kDisableWebRtcHWEncoding, | 129 switches::kDisableWebRtcHWEncoding, |
| 129 #endif | 130 #endif |
| 130 #if defined(OS_WIN) | 131 #if defined(OS_WIN) |
| 131 switches::kEnableAcceleratedVpxDecode, | 132 switches::kEnableAcceleratedVpxDecode, |
| 132 #endif | 133 #endif |
| 133 switches::kEnableGpuRasterization, | 134 switches::kEnableGpuRasterization, |
| 134 switches::kEnableHeapProfiling, | 135 switches::kEnableHeapProfiling, |
| 135 switches::kEnableLogging, | 136 switches::kEnableLogging, |
| 136 #if defined(OS_CHROMEOS) | 137 #if defined(OS_CHROMEOS) |
| (...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1210 if (!cache.get()) | 1211 if (!cache.get()) |
| 1211 return; | 1212 return; |
| 1212 | 1213 |
| 1213 cache->set_shader_loaded_callback(base::Bind(&GpuProcessHost::LoadedShader, | 1214 cache->set_shader_loaded_callback(base::Bind(&GpuProcessHost::LoadedShader, |
| 1214 weak_ptr_factory_.GetWeakPtr())); | 1215 weak_ptr_factory_.GetWeakPtr())); |
| 1215 | 1216 |
| 1216 client_id_to_shader_cache_[client_id] = cache; | 1217 client_id_to_shader_cache_[client_id] = cache; |
| 1217 } | 1218 } |
| 1218 | 1219 |
| 1219 } // namespace content | 1220 } // namespace content |
| OLD | NEW |