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 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
730 switches::kDisableSeccompFilterSandbox, | 730 switches::kDisableSeccompFilterSandbox, |
731 switches::kDisableGpuVsync, | 731 switches::kDisableGpuVsync, |
732 switches::kDisableGpuWatchdog, | 732 switches::kDisableGpuWatchdog, |
733 switches::kDisableImageTransportSurface, | 733 switches::kDisableImageTransportSurface, |
734 switches::kDisableLogging, | 734 switches::kDisableLogging, |
735 switches::kEnableGPUServiceLogging, | 735 switches::kEnableGPUServiceLogging, |
736 switches::kEnableLogging, | 736 switches::kEnableLogging, |
737 #if defined(OS_MACOSX) | 737 #if defined(OS_MACOSX) |
738 switches::kEnableSandboxLogging, | 738 switches::kEnableSandboxLogging, |
739 #endif | 739 #endif |
| 740 #if defined(OS_CHROMEOS) |
| 741 switches::kEnableVaapi, |
| 742 #endif |
740 switches::kGpuNoContextLost, | 743 switches::kGpuNoContextLost, |
741 switches::kGpuStartupDialog, | 744 switches::kGpuStartupDialog, |
742 switches::kLoggingLevel, | 745 switches::kLoggingLevel, |
743 switches::kNoSandbox, | 746 switches::kNoSandbox, |
744 switches::kTestGLLib, | 747 switches::kTestGLLib, |
745 switches::kTraceStartup, | 748 switches::kTraceStartup, |
746 switches::kV, | 749 switches::kV, |
747 switches::kVModule, | 750 switches::kVModule, |
748 }; | 751 }; |
749 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, | 752 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
798 const IPC::ChannelHandle& channel_handle, | 801 const IPC::ChannelHandle& channel_handle, |
799 base::ProcessHandle renderer_process_for_gpu, | 802 base::ProcessHandle renderer_process_for_gpu, |
800 const content::GPUInfo& gpu_info) { | 803 const content::GPUInfo& gpu_info) { |
801 callback.Run(channel_handle, gpu_info); | 804 callback.Run(channel_handle, gpu_info); |
802 } | 805 } |
803 | 806 |
804 void GpuProcessHost::CreateCommandBufferError( | 807 void GpuProcessHost::CreateCommandBufferError( |
805 const CreateCommandBufferCallback& callback, int32 route_id) { | 808 const CreateCommandBufferCallback& callback, int32 route_id) { |
806 callback.Run(route_id); | 809 callback.Run(route_id); |
807 } | 810 } |
OLD | NEW |