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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 switches::kDisableGpuSandbox, | 103 switches::kDisableGpuSandbox, |
104 switches::kDisableGpuWatchdog, | 104 switches::kDisableGpuWatchdog, |
105 switches::kDisableGLExtensions, | 105 switches::kDisableGLExtensions, |
106 switches::kDisableLogging, | 106 switches::kDisableLogging, |
107 switches::kDisableSeccompFilterSandbox, | 107 switches::kDisableSeccompFilterSandbox, |
108 #if defined(ENABLE_WEBRTC) | 108 #if defined(ENABLE_WEBRTC) |
109 switches::kDisableWebRtcHWEncoding, | 109 switches::kDisableWebRtcHWEncoding, |
110 #endif | 110 #endif |
111 #if defined(OS_WIN) | 111 #if defined(OS_WIN) |
112 switches::kEnableAcceleratedVpxDecode, | 112 switches::kEnableAcceleratedVpxDecode, |
| 113 switches::kEnableWinHWH264Encoding, |
113 #endif | 114 #endif |
114 switches::kEnableHeapProfiling, | 115 switches::kEnableHeapProfiling, |
115 switches::kEnableLogging, | 116 switches::kEnableLogging, |
116 #if defined(OS_CHROMEOS) | 117 #if defined(OS_CHROMEOS) |
117 switches::kDisableVaapiAcceleratedVideoEncode, | 118 switches::kDisableVaapiAcceleratedVideoEncode, |
118 #endif | 119 #endif |
119 switches::kGpuDriverBugWorkarounds, | 120 switches::kGpuDriverBugWorkarounds, |
120 switches::kGpuStartupDialog, | 121 switches::kGpuStartupDialog, |
121 switches::kGpuSandboxAllowSysVShm, | 122 switches::kGpuSandboxAllowSysVShm, |
122 switches::kGpuSandboxFailuresFatal, | 123 switches::kGpuSandboxFailuresFatal, |
(...skipping 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1191 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1192 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
1192 ClientIdToShaderCacheMap::iterator iter = | 1193 ClientIdToShaderCacheMap::iterator iter = |
1193 client_id_to_shader_cache_.find(client_id); | 1194 client_id_to_shader_cache_.find(client_id); |
1194 // If the cache doesn't exist then this is an off the record profile. | 1195 // If the cache doesn't exist then this is an off the record profile. |
1195 if (iter == client_id_to_shader_cache_.end()) | 1196 if (iter == client_id_to_shader_cache_.end()) |
1196 return; | 1197 return; |
1197 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1198 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
1198 } | 1199 } |
1199 | 1200 |
1200 } // namespace content | 1201 } // namespace content |
OLD | NEW |