| 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 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 815 cmd_line->AppendSwitch(switches::kDisableGpuSandbox); | 815 cmd_line->AppendSwitch(switches::kDisableGpuSandbox); |
| 816 | 816 |
| 817 // Propagate relevant command line switches. | 817 // Propagate relevant command line switches. |
| 818 static const char* const kSwitchNames[] = { | 818 static const char* const kSwitchNames[] = { |
| 819 switches::kDisableBreakpad, | 819 switches::kDisableBreakpad, |
| 820 switches::kDisableGLMultisampling, | 820 switches::kDisableGLMultisampling, |
| 821 switches::kDisableGpuSandbox, | 821 switches::kDisableGpuSandbox, |
| 822 switches::kReduceGpuSandbox, | 822 switches::kReduceGpuSandbox, |
| 823 switches::kDisableSeccompFilterSandbox, | 823 switches::kDisableSeccompFilterSandbox, |
| 824 switches::kEnableGpuSandbox, | 824 switches::kEnableGpuSandbox, |
| 825 switches::kDisableGpuSwitching, | |
| 826 switches::kDisableGpuVsync, | 825 switches::kDisableGpuVsync, |
| 827 switches::kDisableGpuWatchdog, | 826 switches::kDisableGpuWatchdog, |
| 828 switches::kDisableImageTransportSurface, | 827 switches::kDisableImageTransportSurface, |
| 829 switches::kDisableAcceleratedVideoDecode, | 828 switches::kDisableAcceleratedVideoDecode, |
| 830 switches::kDisableLogging, | 829 switches::kDisableLogging, |
| 831 switches::kEnableGPUServiceLogging, | 830 switches::kEnableGPUServiceLogging, |
| 832 switches::kEnableLogging, | 831 switches::kEnableLogging, |
| 833 #if defined(OS_MACOSX) | 832 #if defined(OS_MACOSX) |
| 834 switches::kEnableSandboxLogging, | 833 switches::kEnableSandboxLogging, |
| 835 #endif | 834 #endif |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 905 const IPC::ChannelHandle& channel_handle, | 904 const IPC::ChannelHandle& channel_handle, |
| 906 base::ProcessHandle renderer_process_for_gpu, | 905 base::ProcessHandle renderer_process_for_gpu, |
| 907 const content::GPUInfo& gpu_info) { | 906 const content::GPUInfo& gpu_info) { |
| 908 callback.Run(channel_handle, gpu_info); | 907 callback.Run(channel_handle, gpu_info); |
| 909 } | 908 } |
| 910 | 909 |
| 911 void GpuProcessHost::CreateCommandBufferError( | 910 void GpuProcessHost::CreateCommandBufferError( |
| 912 const CreateCommandBufferCallback& callback, int32 route_id) { | 911 const CreateCommandBufferCallback& callback, int32 route_id) { |
| 913 callback.Run(route_id); | 912 callback.Run(route_id); |
| 914 } | 913 } |
| OLD | NEW |