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