| 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 "base/base64.h" | 7 #include "base/base64.h" |
| 8 #include "base/base_switches.h" | 8 #include "base/base_switches.h" |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 977 switches::kDisableGpuSandbox, | 977 switches::kDisableGpuSandbox, |
| 978 switches::kDisableGpuWatchdog, | 978 switches::kDisableGpuWatchdog, |
| 979 switches::kDisableLogging, | 979 switches::kDisableLogging, |
| 980 switches::kDisableSeccompFilterSandbox, | 980 switches::kDisableSeccompFilterSandbox, |
| 981 #if defined(ENABLE_WEBRTC) | 981 #if defined(ENABLE_WEBRTC) |
| 982 switches::kDisableWebRtcHWEncoding, | 982 switches::kDisableWebRtcHWEncoding, |
| 983 #endif | 983 #endif |
| 984 switches::kEnableLogging, | 984 switches::kEnableLogging, |
| 985 switches::kEnableShareGroupAsyncTextureUpload, | 985 switches::kEnableShareGroupAsyncTextureUpload, |
| 986 #if defined(OS_CHROMEOS) | 986 #if defined(OS_CHROMEOS) |
| 987 switches::kEnableVaapiAcceleratedVideoEncode, | 987 switches::kDisableVaapiAcceleratedVideoEncode, |
| 988 #endif | 988 #endif |
| 989 switches::kGpuStartupDialog, | 989 switches::kGpuStartupDialog, |
| 990 switches::kGpuSandboxAllowSysVShm, | 990 switches::kGpuSandboxAllowSysVShm, |
| 991 switches::kGpuSandboxFailuresFatal, | 991 switches::kGpuSandboxFailuresFatal, |
| 992 switches::kGpuSandboxStartEarly, | 992 switches::kGpuSandboxStartEarly, |
| 993 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, | 993 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, |
| 994 switches::kLoggingLevel, | 994 switches::kLoggingLevel, |
| 995 switches::kLowEndDeviceMode, | 995 switches::kLowEndDeviceMode, |
| 996 switches::kNoSandbox, | 996 switches::kNoSandbox, |
| 997 switches::kTestGLLib, | 997 switches::kTestGLLib, |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1119 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1119 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
| 1120 ClientIdToShaderCacheMap::iterator iter = | 1120 ClientIdToShaderCacheMap::iterator iter = |
| 1121 client_id_to_shader_cache_.find(client_id); | 1121 client_id_to_shader_cache_.find(client_id); |
| 1122 // If the cache doesn't exist then this is an off the record profile. | 1122 // If the cache doesn't exist then this is an off the record profile. |
| 1123 if (iter == client_id_to_shader_cache_.end()) | 1123 if (iter == client_id_to_shader_cache_.end()) |
| 1124 return; | 1124 return; |
| 1125 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1125 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
| 1126 } | 1126 } |
| 1127 | 1127 |
| 1128 } // namespace content | 1128 } // namespace content |
| OLD | NEW |