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 973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
984 switches::kTestGLLib, | 984 switches::kTestGLLib, |
985 switches::kTraceStartup, | 985 switches::kTraceStartup, |
986 switches::kV, | 986 switches::kV, |
987 switches::kVModule, | 987 switches::kVModule, |
988 #if defined(OS_MACOSX) | 988 #if defined(OS_MACOSX) |
989 switches::kEnableSandboxLogging, | 989 switches::kEnableSandboxLogging, |
990 #endif | 990 #endif |
991 #if defined(USE_AURA) | 991 #if defined(USE_AURA) |
992 switches::kUIPrioritizeInGpuProcess, | 992 switches::kUIPrioritizeInGpuProcess, |
993 #endif | 993 #endif |
| 994 switches::kUseExynosVda, |
994 }; | 995 }; |
995 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, | 996 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, |
996 arraysize(kSwitchNames)); | 997 arraysize(kSwitchNames)); |
997 cmd_line->CopySwitchesFrom( | 998 cmd_line->CopySwitchesFrom( |
998 browser_command_line, switches::kGpuSwitches, switches::kNumGpuSwitches); | 999 browser_command_line, switches::kGpuSwitches, switches::kNumGpuSwitches); |
999 | 1000 |
1000 GetContentClient()->browser()->AppendExtraCommandLineSwitches( | 1001 GetContentClient()->browser()->AppendExtraCommandLineSwitches( |
1001 cmd_line, process_->GetData().id); | 1002 cmd_line, process_->GetData().id); |
1002 | 1003 |
1003 GpuDataManagerImpl::GetInstance()->AppendGpuCommandLine(cmd_line); | 1004 GpuDataManagerImpl::GetInstance()->AppendGpuCommandLine(cmd_line); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1046 void GpuProcessHost::BlockLiveOffscreenContexts() { | 1047 void GpuProcessHost::BlockLiveOffscreenContexts() { |
1047 for (std::multiset<GURL>::iterator iter = | 1048 for (std::multiset<GURL>::iterator iter = |
1048 urls_with_live_offscreen_contexts_.begin(); | 1049 urls_with_live_offscreen_contexts_.begin(); |
1049 iter != urls_with_live_offscreen_contexts_.end(); ++iter) { | 1050 iter != urls_with_live_offscreen_contexts_.end(); ++iter) { |
1050 GpuDataManagerImpl::GetInstance()->BlockDomainFrom3DAPIs( | 1051 GpuDataManagerImpl::GetInstance()->BlockDomainFrom3DAPIs( |
1051 *iter, GpuDataManagerImpl::DOMAIN_GUILT_UNKNOWN); | 1052 *iter, GpuDataManagerImpl::DOMAIN_GUILT_UNKNOWN); |
1052 } | 1053 } |
1053 } | 1054 } |
1054 | 1055 |
1055 } // namespace content | 1056 } // namespace content |
OLD | NEW |