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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 switches::kDisableGpuSandbox, | 113 switches::kDisableGpuSandbox, |
114 switches::kDisableGpuWatchdog, | 114 switches::kDisableGpuWatchdog, |
115 switches::kDisableGLExtensions, | 115 switches::kDisableGLExtensions, |
116 switches::kDisableLogging, | 116 switches::kDisableLogging, |
117 switches::kDisableSeccompFilterSandbox, | 117 switches::kDisableSeccompFilterSandbox, |
118 #if defined(ENABLE_WEBRTC) | 118 #if defined(ENABLE_WEBRTC) |
119 switches::kDisableWebRtcHWEncoding, | 119 switches::kDisableWebRtcHWEncoding, |
120 #endif | 120 #endif |
121 #if defined(OS_WIN) | 121 #if defined(OS_WIN) |
122 switches::kEnableAcceleratedVpxDecode, | 122 switches::kEnableAcceleratedVpxDecode, |
123 switches::kEnableMFH264Encoding, | |
124 #endif | 123 #endif |
125 switches::kEnableHeapProfiling, | 124 switches::kEnableHeapProfiling, |
126 switches::kEnableLogging, | 125 switches::kEnableLogging, |
127 #if defined(OS_CHROMEOS) | 126 #if defined(OS_CHROMEOS) |
128 switches::kDisableVaapiAcceleratedVideoEncode, | 127 switches::kDisableVaapiAcceleratedVideoEncode, |
129 #endif | 128 #endif |
130 switches::kGpuDriverBugWorkarounds, | 129 switches::kGpuDriverBugWorkarounds, |
131 switches::kGpuStartupDialog, | 130 switches::kGpuStartupDialog, |
132 switches::kGpuSandboxAllowSysVShm, | 131 switches::kGpuSandboxAllowSysVShm, |
133 switches::kGpuSandboxFailuresFatal, | 132 switches::kGpuSandboxFailuresFatal, |
(...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1189 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1188 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
1190 ClientIdToShaderCacheMap::iterator iter = | 1189 ClientIdToShaderCacheMap::iterator iter = |
1191 client_id_to_shader_cache_.find(client_id); | 1190 client_id_to_shader_cache_.find(client_id); |
1192 // If the cache doesn't exist then this is an off the record profile. | 1191 // If the cache doesn't exist then this is an off the record profile. |
1193 if (iter == client_id_to_shader_cache_.end()) | 1192 if (iter == client_id_to_shader_cache_.end()) |
1194 return; | 1193 return; |
1195 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1194 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
1196 } | 1195 } |
1197 | 1196 |
1198 } // namespace content | 1197 } // namespace content |
OLD | NEW |