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 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
883 switches::kNoSandbox, | 883 switches::kNoSandbox, |
884 switches::kTestGLLib, | 884 switches::kTestGLLib, |
885 switches::kTraceStartup, | 885 switches::kTraceStartup, |
886 switches::kV, | 886 switches::kV, |
887 switches::kVModule, | 887 switches::kVModule, |
888 switches::kEnableUIReleaseFrontSurface, | 888 switches::kEnableUIReleaseFrontSurface, |
889 #if defined(USE_AURA) | 889 #if defined(USE_AURA) |
890 switches::kUIPrioritizeInGpuProcess, | 890 switches::kUIPrioritizeInGpuProcess, |
891 #endif | 891 #endif |
892 switches::kCrashOnGpuHang, | 892 switches::kCrashOnGpuHang, |
| 893 switches::kUseExynosVda, |
893 }; | 894 }; |
894 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, | 895 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, |
895 arraysize(kSwitchNames)); | 896 arraysize(kSwitchNames)); |
896 cmd_line->CopySwitchesFrom( | 897 cmd_line->CopySwitchesFrom( |
897 browser_command_line, switches::kGpuSwitches, switches::kNumGpuSwitches); | 898 browser_command_line, switches::kGpuSwitches, switches::kNumGpuSwitches); |
898 | 899 |
899 GetContentClient()->browser()->AppendExtraCommandLineSwitches( | 900 GetContentClient()->browser()->AppendExtraCommandLineSwitches( |
900 cmd_line, process_->GetData().id); | 901 cmd_line, process_->GetData().id); |
901 | 902 |
902 GpuDataManagerImpl::GetInstance()->AppendGpuCommandLine(cmd_line); | 903 GpuDataManagerImpl::GetInstance()->AppendGpuCommandLine(cmd_line); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
956 const CreateCommandBufferCallback& callback, int32 route_id) { | 957 const CreateCommandBufferCallback& callback, int32 route_id) { |
957 callback.Run(route_id); | 958 callback.Run(route_id); |
958 } | 959 } |
959 | 960 |
960 void GpuProcessHost::CreateImageError( | 961 void GpuProcessHost::CreateImageError( |
961 const CreateImageCallback& callback, const gfx::Size size) { | 962 const CreateImageCallback& callback, const gfx::Size size) { |
962 callback.Run(size); | 963 callback.Run(size); |
963 } | 964 } |
964 | 965 |
965 } // namespace content | 966 } // namespace content |
OLD | NEW |