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 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 if (kind_ == GPU_PROCESS_KIND_UNSANDBOXED) | 698 if (kind_ == GPU_PROCESS_KIND_UNSANDBOXED) |
699 cmd_line->AppendSwitch(switches::kDisableGpuSandbox); | 699 cmd_line->AppendSwitch(switches::kDisableGpuSandbox); |
700 | 700 |
701 // Propagate relevant command line switches. | 701 // Propagate relevant command line switches. |
702 static const char* const kSwitchNames[] = { | 702 static const char* const kSwitchNames[] = { |
703 switches::kDisableBreakpad, | 703 switches::kDisableBreakpad, |
704 switches::kDisableGLMultisampling, | 704 switches::kDisableGLMultisampling, |
705 switches::kDisableGpuDriverBugWorkarounds, | 705 switches::kDisableGpuDriverBugWorkarounds, |
706 switches::kDisableGpuSandbox, | 706 switches::kDisableGpuSandbox, |
707 switches::kReduceGpuSandbox, | 707 switches::kReduceGpuSandbox, |
| 708 switches::kDisableSeccompFilterSandbox, |
708 switches::kDisableGpuVsync, | 709 switches::kDisableGpuVsync, |
709 switches::kDisableGpuWatchdog, | 710 switches::kDisableGpuWatchdog, |
710 switches::kDisableImageTransportSurface, | 711 switches::kDisableImageTransportSurface, |
711 switches::kDisableLogging, | 712 switches::kDisableLogging, |
712 switches::kEnableLogging, | 713 switches::kEnableLogging, |
713 #if defined(OS_MACOSX) | 714 #if defined(OS_MACOSX) |
714 switches::kEnableSandboxLogging, | 715 switches::kEnableSandboxLogging, |
715 #endif | 716 #endif |
716 switches::kGpuNoContextLost, | 717 switches::kGpuNoContextLost, |
717 switches::kGpuStartupDialog, | 718 switches::kGpuStartupDialog, |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
774 const IPC::ChannelHandle& channel_handle, | 775 const IPC::ChannelHandle& channel_handle, |
775 base::ProcessHandle renderer_process_for_gpu, | 776 base::ProcessHandle renderer_process_for_gpu, |
776 const content::GPUInfo& gpu_info) { | 777 const content::GPUInfo& gpu_info) { |
777 callback.Run(channel_handle, renderer_process_for_gpu, gpu_info); | 778 callback.Run(channel_handle, renderer_process_for_gpu, gpu_info); |
778 } | 779 } |
779 | 780 |
780 void GpuProcessHost::CreateCommandBufferError( | 781 void GpuProcessHost::CreateCommandBufferError( |
781 const CreateCommandBufferCallback& callback, int32 route_id) { | 782 const CreateCommandBufferCallback& callback, int32 route_id) { |
782 callback.Run(route_id); | 783 callback.Run(route_id); |
783 } | 784 } |
OLD | NEW |