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 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
841 switches::kLoggingLevel, | 841 switches::kLoggingLevel, |
842 switches::kNoSandbox, | 842 switches::kNoSandbox, |
843 switches::kTestGLLib, | 843 switches::kTestGLLib, |
844 switches::kTraceStartup, | 844 switches::kTraceStartup, |
845 switches::kV, | 845 switches::kV, |
846 switches::kVModule, | 846 switches::kVModule, |
847 switches::kEnableUIReleaseFrontSurface, | 847 switches::kEnableUIReleaseFrontSurface, |
848 #if defined(USE_AURA) | 848 #if defined(USE_AURA) |
849 switches::kUIPrioritizeInGpuProcess, | 849 switches::kUIPrioritizeInGpuProcess, |
850 #endif | 850 #endif |
| 851 switches::kUseExynosVda, |
851 }; | 852 }; |
852 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, | 853 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, |
853 arraysize(kSwitchNames)); | 854 arraysize(kSwitchNames)); |
854 cmd_line->CopySwitchesFrom( | 855 cmd_line->CopySwitchesFrom( |
855 browser_command_line, switches::kGpuSwitches, switches::kNumGpuSwitches); | 856 browser_command_line, switches::kGpuSwitches, switches::kNumGpuSwitches); |
856 | 857 |
857 content::GetContentClient()->browser()->AppendExtraCommandLineSwitches( | 858 content::GetContentClient()->browser()->AppendExtraCommandLineSwitches( |
858 cmd_line, process_->GetData().id); | 859 cmd_line, process_->GetData().id); |
859 | 860 |
860 GpuDataManagerImpl::GetInstance()->AppendGpuCommandLine(cmd_line); | 861 GpuDataManagerImpl::GetInstance()->AppendGpuCommandLine(cmd_line); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
907 const IPC::ChannelHandle& channel_handle, | 908 const IPC::ChannelHandle& channel_handle, |
908 base::ProcessHandle renderer_process_for_gpu, | 909 base::ProcessHandle renderer_process_for_gpu, |
909 const content::GPUInfo& gpu_info) { | 910 const content::GPUInfo& gpu_info) { |
910 callback.Run(channel_handle, gpu_info); | 911 callback.Run(channel_handle, gpu_info); |
911 } | 912 } |
912 | 913 |
913 void GpuProcessHost::CreateCommandBufferError( | 914 void GpuProcessHost::CreateCommandBufferError( |
914 const CreateCommandBufferCallback& callback, int32 route_id) { | 915 const CreateCommandBufferCallback& callback, int32 route_id) { |
915 callback.Run(route_id); | 916 callback.Run(route_id); |
916 } | 917 } |
OLD | NEW |