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 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
895 switches::kV, | 895 switches::kV, |
896 switches::kVModule, | 896 switches::kVModule, |
897 #if defined(OS_MACOSX) | 897 #if defined(OS_MACOSX) |
898 switches::kEnableSandboxLogging, | 898 switches::kEnableSandboxLogging, |
899 #endif | 899 #endif |
900 #if defined(USE_AURA) | 900 #if defined(USE_AURA) |
901 switches::kUIPrioritizeInGpuProcess, | 901 switches::kUIPrioritizeInGpuProcess, |
902 #endif | 902 #endif |
903 #if defined(USE_OZONE) | 903 #if defined(USE_OZONE) |
904 switches::kOzonePlatform, | 904 switches::kOzonePlatform, |
| 905 switches::kOzoneUseSurfaceless, |
905 #endif | 906 #endif |
906 #if defined(USE_X11) && !defined(OS_CHROMEOS) | 907 #if defined(USE_X11) && !defined(OS_CHROMEOS) |
907 switches::kX11Display, | 908 switches::kX11Display, |
908 #endif | 909 #endif |
909 }; | 910 }; |
910 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, | 911 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, |
911 arraysize(kSwitchNames)); | 912 arraysize(kSwitchNames)); |
912 cmd_line->CopySwitchesFrom( | 913 cmd_line->CopySwitchesFrom( |
913 browser_command_line, switches::kGpuSwitches, switches::kNumGpuSwitches); | 914 browser_command_line, switches::kGpuSwitches, switches::kNumGpuSwitches); |
914 cmd_line->CopySwitchesFrom( | 915 cmd_line->CopySwitchesFrom( |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1080 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1081 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
1081 ClientIdToShaderCacheMap::iterator iter = | 1082 ClientIdToShaderCacheMap::iterator iter = |
1082 client_id_to_shader_cache_.find(client_id); | 1083 client_id_to_shader_cache_.find(client_id); |
1083 // If the cache doesn't exist then this is an off the record profile. | 1084 // If the cache doesn't exist then this is an off the record profile. |
1084 if (iter == client_id_to_shader_cache_.end()) | 1085 if (iter == client_id_to_shader_cache_.end()) |
1085 return; | 1086 return; |
1086 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1087 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
1087 } | 1088 } |
1088 | 1089 |
1089 } // namespace content | 1090 } // namespace content |
OLD | NEW |