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