| 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 |
| 747 switches::kGpuNoContextLost, | 750 switches::kGpuNoContextLost, |
| 748 switches::kGpuStartupDialog, | 751 switches::kGpuStartupDialog, |
| 749 switches::kLoggingLevel, | 752 switches::kLoggingLevel, |
| 750 switches::kNoSandbox, | 753 switches::kNoSandbox, |
| 751 switches::kTestGLLib, | 754 switches::kTestGLLib, |
| 752 switches::kTraceStartup, | 755 switches::kTraceStartup, |
| 753 switches::kV, | 756 switches::kV, |
| 754 switches::kVModule, | 757 switches::kVModule, |
| 755 }; | 758 }; |
| 756 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, | 759 cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 805 const IPC::ChannelHandle& channel_handle, | 808 const IPC::ChannelHandle& channel_handle, |
| 806 base::ProcessHandle renderer_process_for_gpu, | 809 base::ProcessHandle renderer_process_for_gpu, |
| 807 const content::GPUInfo& gpu_info) { | 810 const content::GPUInfo& gpu_info) { |
| 808 callback.Run(channel_handle, gpu_info); | 811 callback.Run(channel_handle, gpu_info); |
| 809 } | 812 } |
| 810 | 813 |
| 811 void GpuProcessHost::CreateCommandBufferError( | 814 void GpuProcessHost::CreateCommandBufferError( |
| 812 const CreateCommandBufferCallback& callback, int32 route_id) { | 815 const CreateCommandBufferCallback& callback, int32 route_id) { |
| 813 callback.Run(route_id); | 816 callback.Run(route_id); |
| 814 } | 817 } |
| OLD | NEW |