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/base_switches.h" | 7 #include "base/base_switches.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1015 switches::kTestGLLib, | 1015 switches::kTestGLLib, |
1016 switches::kTraceStartup, | 1016 switches::kTraceStartup, |
1017 switches::kV, | 1017 switches::kV, |
1018 switches::kVModule, | 1018 switches::kVModule, |
1019 switches::kEnableUIReleaseFrontSurface, | 1019 switches::kEnableUIReleaseFrontSurface, |
1020 #if defined(USE_AURA) | 1020 #if defined(USE_AURA) |
1021 switches::kUIPrioritizeInGpuProcess, | 1021 switches::kUIPrioritizeInGpuProcess, |
1022 #endif | 1022 #endif |
1023 switches::kCrashOnGpuHang, | 1023 switches::kCrashOnGpuHang, |
1024 switches::kEnableVirtualGLContexts, | 1024 switches::kEnableVirtualGLContexts, |
| 1025 switches::kUseExynosVda, |
1025 }; | 1026 }; |
1026 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, | 1027 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, |
1027 arraysize(kSwitchNames)); | 1028 arraysize(kSwitchNames)); |
1028 cmd_line->CopySwitchesFrom( | 1029 cmd_line->CopySwitchesFrom( |
1029 browser_command_line, switches::kGpuSwitches, switches::kNumGpuSwitches); | 1030 browser_command_line, switches::kGpuSwitches, switches::kNumGpuSwitches); |
1030 | 1031 |
1031 GetContentClient()->browser()->AppendExtraCommandLineSwitches( | 1032 GetContentClient()->browser()->AppendExtraCommandLineSwitches( |
1032 cmd_line, process_->GetData().id); | 1033 cmd_line, process_->GetData().id); |
1033 | 1034 |
1034 GpuDataManagerImpl::GetInstance()->AppendGpuCommandLine(cmd_line); | 1035 GpuDataManagerImpl::GetInstance()->AppendGpuCommandLine(cmd_line); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1097 void GpuProcessHost::BlockLiveOffscreenContexts() { | 1098 void GpuProcessHost::BlockLiveOffscreenContexts() { |
1098 for (std::multiset<GURL>::iterator iter = | 1099 for (std::multiset<GURL>::iterator iter = |
1099 urls_with_live_offscreen_contexts_.begin(); | 1100 urls_with_live_offscreen_contexts_.begin(); |
1100 iter != urls_with_live_offscreen_contexts_.end(); ++iter) { | 1101 iter != urls_with_live_offscreen_contexts_.end(); ++iter) { |
1101 GpuDataManagerImpl::GetInstance()->BlockDomainFrom3DAPIs( | 1102 GpuDataManagerImpl::GetInstance()->BlockDomainFrom3DAPIs( |
1102 *iter, GpuDataManagerImpl::DOMAIN_GUILT_UNKNOWN); | 1103 *iter, GpuDataManagerImpl::DOMAIN_GUILT_UNKNOWN); |
1103 } | 1104 } |
1104 } | 1105 } |
1105 | 1106 |
1106 } // namespace content | 1107 } // namespace content |
OLD | NEW |