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 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
737 switches::kDisableGpuSwitching, | 737 switches::kDisableGpuSwitching, |
738 switches::kDisableGpuVsync, | 738 switches::kDisableGpuVsync, |
739 switches::kDisableGpuWatchdog, | 739 switches::kDisableGpuWatchdog, |
740 switches::kDisableImageTransportSurface, | 740 switches::kDisableImageTransportSurface, |
741 switches::kDisableLogging, | 741 switches::kDisableLogging, |
742 switches::kEnableGPUServiceLogging, | 742 switches::kEnableGPUServiceLogging, |
743 switches::kEnableLogging, | 743 switches::kEnableLogging, |
744 #if defined(OS_MACOSX) | 744 #if defined(OS_MACOSX) |
745 switches::kEnableSandboxLogging, | 745 switches::kEnableSandboxLogging, |
746 #endif | 746 #endif |
747 #if defined(OS_CHROMEOS) | |
748 switches::kEnableVaapi, | |
749 #endif | |
750 switches::kGpuNoContextLost, | 747 switches::kGpuNoContextLost, |
751 switches::kGpuStartupDialog, | 748 switches::kGpuStartupDialog, |
752 switches::kLoggingLevel, | 749 switches::kLoggingLevel, |
753 switches::kNoSandbox, | 750 switches::kNoSandbox, |
754 switches::kTestGLLib, | 751 switches::kTestGLLib, |
755 switches::kTraceStartup, | 752 switches::kTraceStartup, |
756 switches::kV, | 753 switches::kV, |
757 switches::kVModule, | 754 switches::kVModule, |
758 }; | 755 }; |
759 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, | 756 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
808 const IPC::ChannelHandle& channel_handle, | 805 const IPC::ChannelHandle& channel_handle, |
809 base::ProcessHandle renderer_process_for_gpu, | 806 base::ProcessHandle renderer_process_for_gpu, |
810 const content::GPUInfo& gpu_info) { | 807 const content::GPUInfo& gpu_info) { |
811 callback.Run(channel_handle, gpu_info); | 808 callback.Run(channel_handle, gpu_info); |
812 } | 809 } |
813 | 810 |
814 void GpuProcessHost::CreateCommandBufferError( | 811 void GpuProcessHost::CreateCommandBufferError( |
815 const CreateCommandBufferCallback& callback, int32 route_id) { | 812 const CreateCommandBufferCallback& callback, int32 route_id) { |
816 callback.Run(route_id); | 813 callback.Run(route_id); |
817 } | 814 } |
OLD | NEW |