| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 switches::kCreateDefaultGLContext, | 112 switches::kCreateDefaultGLContext, |
| 113 switches::kDisableAcceleratedVideoDecode, | 113 switches::kDisableAcceleratedVideoDecode, |
| 114 switches::kDisableBreakpad, | 114 switches::kDisableBreakpad, |
| 115 switches::kDisableES3GLContext, | 115 switches::kDisableES3GLContext, |
| 116 switches::kDisableGpuSandbox, | 116 switches::kDisableGpuSandbox, |
| 117 switches::kDisableGpuWatchdog, | 117 switches::kDisableGpuWatchdog, |
| 118 switches::kDisableGLExtensions, | 118 switches::kDisableGLExtensions, |
| 119 switches::kDisableLogging, | 119 switches::kDisableLogging, |
| 120 switches::kDisableSeccompFilterSandbox, | 120 switches::kDisableSeccompFilterSandbox, |
| 121 #if BUILDFLAG(ENABLE_WEBRTC) | 121 #if BUILDFLAG(ENABLE_WEBRTC) |
| 122 switches::kDisableWebRtcHWEncoding, | 122 switches::kDisableWebRtcHWVP8Encoding, |
| 123 #endif | 123 #endif |
| 124 #if defined(OS_WIN) | 124 #if defined(OS_WIN) |
| 125 switches::kEnableAcceleratedVpxDecode, | 125 switches::kEnableAcceleratedVpxDecode, |
| 126 #endif | 126 #endif |
| 127 switches::kEnableHeapProfiling, | 127 switches::kEnableHeapProfiling, |
| 128 switches::kEnableLogging, | 128 switches::kEnableLogging, |
| 129 #if defined(OS_CHROMEOS) | 129 #if defined(OS_CHROMEOS) |
| 130 switches::kDisableVaapiAcceleratedVideoEncode, | 130 switches::kDisableVaapiAcceleratedVideoEncode, |
| 131 #endif | 131 #endif |
| 132 switches::kGpuDriverBugWorkarounds, | 132 switches::kGpuDriverBugWorkarounds, |
| (...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1192 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1192 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
| 1193 ClientIdToShaderCacheMap::iterator iter = | 1193 ClientIdToShaderCacheMap::iterator iter = |
| 1194 client_id_to_shader_cache_.find(client_id); | 1194 client_id_to_shader_cache_.find(client_id); |
| 1195 // 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. |
| 1196 if (iter == client_id_to_shader_cache_.end()) | 1196 if (iter == client_id_to_shader_cache_.end()) |
| 1197 return; | 1197 return; |
| 1198 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1198 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
| 1199 } | 1199 } |
| 1200 | 1200 |
| 1201 } // namespace content | 1201 } // namespace content |
| OLD | NEW |