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