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 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
861 switches::kVModule, | 861 switches::kVModule, |
862 #if defined(OS_MACOSX) | 862 #if defined(OS_MACOSX) |
863 switches::kEnableRemoteCoreAnimation, | 863 switches::kEnableRemoteCoreAnimation, |
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 switches::kOzoneUseSurfaceless, |
871 #endif | 872 #endif |
872 #if defined(USE_X11) && !defined(OS_CHROMEOS) | 873 #if defined(USE_X11) && !defined(OS_CHROMEOS) |
873 switches::kX11Display, | 874 switches::kX11Display, |
874 #endif | 875 #endif |
875 }; | 876 }; |
876 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, | 877 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, |
877 arraysize(kSwitchNames)); | 878 arraysize(kSwitchNames)); |
878 cmd_line->CopySwitchesFrom( | 879 cmd_line->CopySwitchesFrom( |
879 browser_command_line, switches::kGpuSwitches, switches::kNumGpuSwitches); | 880 browser_command_line, switches::kGpuSwitches, switches::kNumGpuSwitches); |
880 cmd_line->CopySwitchesFrom( | 881 cmd_line->CopySwitchesFrom( |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1046 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1047 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
1047 ClientIdToShaderCacheMap::iterator iter = | 1048 ClientIdToShaderCacheMap::iterator iter = |
1048 client_id_to_shader_cache_.find(client_id); | 1049 client_id_to_shader_cache_.find(client_id); |
1049 // If the cache doesn't exist then this is an off the record profile. | 1050 // If the cache doesn't exist then this is an off the record profile. |
1050 if (iter == client_id_to_shader_cache_.end()) | 1051 if (iter == client_id_to_shader_cache_.end()) |
1051 return; | 1052 return; |
1052 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1053 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
1053 } | 1054 } |
1054 | 1055 |
1055 } // namespace content | 1056 } // namespace content |
OLD | NEW |