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 842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
853 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, | 853 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, |
854 switches::kLoggingLevel, | 854 switches::kLoggingLevel, |
855 switches::kLowEndDeviceMode, | 855 switches::kLowEndDeviceMode, |
856 switches::kNoSandbox, | 856 switches::kNoSandbox, |
857 switches::kTestGLLib, | 857 switches::kTestGLLib, |
858 switches::kTraceStartup, | 858 switches::kTraceStartup, |
859 switches::kTraceToConsole, | 859 switches::kTraceToConsole, |
860 switches::kV, | 860 switches::kV, |
861 switches::kVModule, | 861 switches::kVModule, |
862 #if defined(OS_MACOSX) | 862 #if defined(OS_MACOSX) |
863 switches::kEnableRemoteCoreAnimation, | 863 switches::kDisableRemoteCoreAnimation, |
864 switches::kEnableSandboxLogging, | 864 switches::kEnableSandboxLogging, |
865 #endif | 865 #endif |
866 #if defined(USE_AURA) | 866 #if defined(USE_AURA) |
867 switches::kUIPrioritizeInGpuProcess, | 867 switches::kUIPrioritizeInGpuProcess, |
868 #endif | 868 #endif |
869 #if defined(USE_OZONE) | 869 #if defined(USE_OZONE) |
870 switches::kOzonePlatform, | 870 switches::kOzonePlatform, |
871 #endif | 871 #endif |
872 #if defined(USE_X11) && !defined(OS_CHROMEOS) | 872 #if defined(USE_X11) && !defined(OS_CHROMEOS) |
873 switches::kX11Display, | 873 switches::kX11Display, |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1046 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1046 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
1047 ClientIdToShaderCacheMap::iterator iter = | 1047 ClientIdToShaderCacheMap::iterator iter = |
1048 client_id_to_shader_cache_.find(client_id); | 1048 client_id_to_shader_cache_.find(client_id); |
1049 // If the cache doesn't exist then this is an off the record profile. | 1049 // If the cache doesn't exist then this is an off the record profile. |
1050 if (iter == client_id_to_shader_cache_.end()) | 1050 if (iter == client_id_to_shader_cache_.end()) |
1051 return; | 1051 return; |
1052 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1052 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
1053 } | 1053 } |
1054 | 1054 |
1055 } // namespace content | 1055 } // namespace content |
OLD | NEW |