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 936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
947 switches::kVModule, | 947 switches::kVModule, |
948 #if defined(OS_MACOSX) | 948 #if defined(OS_MACOSX) |
949 switches::kEnableSandboxLogging, | 949 switches::kEnableSandboxLogging, |
950 #endif | 950 #endif |
951 #if defined(USE_AURA) | 951 #if defined(USE_AURA) |
952 switches::kUIPrioritizeInGpuProcess, | 952 switches::kUIPrioritizeInGpuProcess, |
953 #endif | 953 #endif |
954 #if defined(USE_OZONE) | 954 #if defined(USE_OZONE) |
955 switches::kOzonePlatform, | 955 switches::kOzonePlatform, |
956 #endif | 956 #endif |
957 #if defined(OS_WIN) | |
958 switches::kHighDPISupport, | |
959 #endif | |
960 }; | 957 }; |
961 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, | 958 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, |
962 arraysize(kSwitchNames)); | 959 arraysize(kSwitchNames)); |
963 cmd_line->CopySwitchesFrom( | 960 cmd_line->CopySwitchesFrom( |
964 browser_command_line, switches::kGpuSwitches, switches::kNumGpuSwitches); | 961 browser_command_line, switches::kGpuSwitches, switches::kNumGpuSwitches); |
965 cmd_line->CopySwitchesFrom( | 962 cmd_line->CopySwitchesFrom( |
966 browser_command_line, switches::kGLSwitchesCopiedFromGpuProcessHost, | 963 browser_command_line, switches::kGLSwitchesCopiedFromGpuProcessHost, |
967 switches::kGLSwitchesCopiedFromGpuProcessHostNumSwitches); | 964 switches::kGLSwitchesCopiedFromGpuProcessHostNumSwitches); |
968 | 965 |
969 GetContentClient()->browser()->AppendExtraCommandLineSwitches( | 966 GetContentClient()->browser()->AppendExtraCommandLineSwitches( |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1065 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); | 1062 TRACE_EVENT0("gpu", "GpuProcessHost::OnCacheShader"); |
1066 ClientIdToShaderCacheMap::iterator iter = | 1063 ClientIdToShaderCacheMap::iterator iter = |
1067 client_id_to_shader_cache_.find(client_id); | 1064 client_id_to_shader_cache_.find(client_id); |
1068 // If the cache doesn't exist then this is an off the record profile. | 1065 // If the cache doesn't exist then this is an off the record profile. |
1069 if (iter == client_id_to_shader_cache_.end()) | 1066 if (iter == client_id_to_shader_cache_.end()) |
1070 return; | 1067 return; |
1071 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); | 1068 iter->second->Cache(GetShaderPrefixKey() + ":" + key, shader); |
1072 } | 1069 } |
1073 | 1070 |
1074 } // namespace content | 1071 } // namespace content |
OLD | NEW |