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 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
908 switches::kNoSandbox, | 908 switches::kNoSandbox, |
909 switches::kTestGLLib, | 909 switches::kTestGLLib, |
910 switches::kTraceStartup, | 910 switches::kTraceStartup, |
911 switches::kV, | 911 switches::kV, |
912 switches::kVModule, | 912 switches::kVModule, |
913 switches::kEnableUIReleaseFrontSurface, | 913 switches::kEnableUIReleaseFrontSurface, |
914 #if defined(USE_AURA) | 914 #if defined(USE_AURA) |
915 switches::kUIPrioritizeInGpuProcess, | 915 switches::kUIPrioritizeInGpuProcess, |
916 #endif | 916 #endif |
917 switches::kCrashOnGpuHang, | 917 switches::kCrashOnGpuHang, |
| 918 switches::kUseExynosVda, |
918 }; | 919 }; |
919 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, | 920 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, |
920 arraysize(kSwitchNames)); | 921 arraysize(kSwitchNames)); |
921 cmd_line->CopySwitchesFrom( | 922 cmd_line->CopySwitchesFrom( |
922 browser_command_line, switches::kGpuSwitches, switches::kNumGpuSwitches); | 923 browser_command_line, switches::kGpuSwitches, switches::kNumGpuSwitches); |
923 | 924 |
924 GetContentClient()->browser()->AppendExtraCommandLineSwitches( | 925 GetContentClient()->browser()->AppendExtraCommandLineSwitches( |
925 cmd_line, process_->GetData().id); | 926 cmd_line, process_->GetData().id); |
926 | 927 |
927 GpuDataManagerImpl::GetInstance()->AppendGpuCommandLine(cmd_line); | 928 GpuDataManagerImpl::GetInstance()->AppendGpuCommandLine(cmd_line); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
981 const CreateCommandBufferCallback& callback, int32 route_id) { | 982 const CreateCommandBufferCallback& callback, int32 route_id) { |
982 callback.Run(route_id); | 983 callback.Run(route_id); |
983 } | 984 } |
984 | 985 |
985 void GpuProcessHost::CreateImageError( | 986 void GpuProcessHost::CreateImageError( |
986 const CreateImageCallback& callback, const gfx::Size size) { | 987 const CreateImageCallback& callback, const gfx::Size size) { |
987 callback.Run(size); | 988 callback.Run(size); |
988 } | 989 } |
989 | 990 |
990 } // namespace content | 991 } // namespace content |
OLD | NEW |