| 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 <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 switches::kDisableLogging, | 101 switches::kDisableLogging, |
| 102 switches::kDisableSeccompFilterSandbox, | 102 switches::kDisableSeccompFilterSandbox, |
| 103 #if defined(ENABLE_WEBRTC) | 103 #if defined(ENABLE_WEBRTC) |
| 104 switches::kDisableWebRtcHWEncoding, | 104 switches::kDisableWebRtcHWEncoding, |
| 105 #endif | 105 #endif |
| 106 #if defined(OS_WIN) | 106 #if defined(OS_WIN) |
| 107 switches::kEnableAcceleratedVpxDecode, | 107 switches::kEnableAcceleratedVpxDecode, |
| 108 #endif | 108 #endif |
| 109 switches::kEnableHeapProfiling, | 109 switches::kEnableHeapProfiling, |
| 110 switches::kEnableLogging, | 110 switches::kEnableLogging, |
| 111 #if defined(OS_ANDROID) | |
| 112 switches::kEnableUnifiedMediaPipeline, | |
| 113 #endif | |
| 114 #if defined(OS_CHROMEOS) | 111 #if defined(OS_CHROMEOS) |
| 115 switches::kDisableVaapiAcceleratedVideoEncode, | 112 switches::kDisableVaapiAcceleratedVideoEncode, |
| 116 #endif | 113 #endif |
| 117 switches::kGpuDriverBugWorkarounds, | 114 switches::kGpuDriverBugWorkarounds, |
| 118 switches::kGpuStartupDialog, | 115 switches::kGpuStartupDialog, |
| 119 switches::kGpuSandboxAllowSysVShm, | 116 switches::kGpuSandboxAllowSysVShm, |
| 120 switches::kGpuSandboxFailuresFatal, | 117 switches::kGpuSandboxFailuresFatal, |
| 121 switches::kGpuSandboxStartEarly, | 118 switches::kGpuSandboxStartEarly, |
| 122 switches::kLoggingLevel, | 119 switches::kLoggingLevel, |
| 123 switches::kEnableLowEndDeviceMode, | 120 switches::kEnableLowEndDeviceMode, |
| (...skipping 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1167 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1164 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
| 1168 ClientIdToShaderCacheMap::iterator iter = | 1165 ClientIdToShaderCacheMap::iterator iter = |
| 1169 client_id_to_shader_cache_.find(client_id); | 1166 client_id_to_shader_cache_.find(client_id); |
| 1170 // If the cache doesn't exist then this is an off the record profile. | 1167 // If the cache doesn't exist then this is an off the record profile. |
| 1171 if (iter == client_id_to_shader_cache_.end()) | 1168 if (iter == client_id_to_shader_cache_.end()) |
| 1172 return; | 1169 return; |
| 1173 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1170 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
| 1174 } | 1171 } |
| 1175 | 1172 |
| 1176 } // namespace content | 1173 } // namespace content |
| OLD | NEW |