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 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
877 switches::kDisableGpuSandbox, | 877 switches::kDisableGpuSandbox, |
878 switches::kDisableGpuWatchdog, | 878 switches::kDisableGpuWatchdog, |
879 switches::kDisableLogging, | 879 switches::kDisableLogging, |
880 switches::kDisableSeccompFilterSandbox, | 880 switches::kDisableSeccompFilterSandbox, |
881 #if defined(ENABLE_WEBRTC) | 881 #if defined(ENABLE_WEBRTC) |
882 switches::kDisableWebRtcHWEncoding, | 882 switches::kDisableWebRtcHWEncoding, |
883 #endif | 883 #endif |
884 switches::kEnableLogging, | 884 switches::kEnableLogging, |
885 switches::kEnableShareGroupAsyncTextureUpload, | 885 switches::kEnableShareGroupAsyncTextureUpload, |
886 #if defined(OS_CHROMEOS) | 886 #if defined(OS_CHROMEOS) |
887 switches::kEnableVaapiAcceleratedVideoEncode, | 887 switches::kDisableVaapiAcceleratedVideoEncode, |
888 #endif | 888 #endif |
889 switches::kGpuStartupDialog, | 889 switches::kGpuStartupDialog, |
890 switches::kGpuSandboxAllowSysVShm, | 890 switches::kGpuSandboxAllowSysVShm, |
891 switches::kGpuSandboxFailuresFatal, | 891 switches::kGpuSandboxFailuresFatal, |
892 switches::kGpuSandboxStartEarly, | 892 switches::kGpuSandboxStartEarly, |
893 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, | 893 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, |
894 switches::kLoggingLevel, | 894 switches::kLoggingLevel, |
895 switches::kLowEndDeviceMode, | 895 switches::kLowEndDeviceMode, |
896 switches::kNoSandbox, | 896 switches::kNoSandbox, |
897 switches::kTestGLLib, | 897 switches::kTestGLLib, |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1085 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1085 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
1086 ClientIdToShaderCacheMap::iterator iter = | 1086 ClientIdToShaderCacheMap::iterator iter = |
1087 client_id_to_shader_cache_.find(client_id); | 1087 client_id_to_shader_cache_.find(client_id); |
1088 // If the cache doesn't exist then this is an off the record profile. | 1088 // If the cache doesn't exist then this is an off the record profile. |
1089 if (iter == client_id_to_shader_cache_.end()) | 1089 if (iter == client_id_to_shader_cache_.end()) |
1090 return; | 1090 return; |
1091 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1091 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
1092 } | 1092 } |
1093 | 1093 |
1094 } // namespace content | 1094 } // namespace content |
OLD | NEW |