| 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 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 828 switches::kDisableImageTransportSurface, | 828 switches::kDisableImageTransportSurface, |
| 829 switches::kDisableAcceleratedVideoDecode, | 829 switches::kDisableAcceleratedVideoDecode, |
| 830 switches::kDisableLogging, | 830 switches::kDisableLogging, |
| 831 switches::kEnableGPUServiceLogging, | 831 switches::kEnableGPUServiceLogging, |
| 832 switches::kEnableLogging, | 832 switches::kEnableLogging, |
| 833 #if defined(OS_MACOSX) | 833 #if defined(OS_MACOSX) |
| 834 switches::kEnableSandboxLogging, | 834 switches::kEnableSandboxLogging, |
| 835 #endif | 835 #endif |
| 836 switches::kGpuNoContextLost, | 836 switches::kGpuNoContextLost, |
| 837 switches::kGpuStartupDialog, | 837 switches::kGpuStartupDialog, |
| 838 switches::kGpuSwitching, |
| 838 switches::kLoggingLevel, | 839 switches::kLoggingLevel, |
| 839 switches::kNoSandbox, | 840 switches::kNoSandbox, |
| 840 switches::kTestGLLib, | 841 switches::kTestGLLib, |
| 841 switches::kTraceStartup, | 842 switches::kTraceStartup, |
| 842 switches::kV, | 843 switches::kV, |
| 843 switches::kVModule, | 844 switches::kVModule, |
| 844 switches::kEnableUIReleaseFrontSurface, | 845 switches::kEnableUIReleaseFrontSurface, |
| 845 #if defined(USE_AURA) | 846 #if defined(USE_AURA) |
| 846 switches::kUIPrioritizeInGpuProcess, | 847 switches::kUIPrioritizeInGpuProcess, |
| 847 #endif | 848 #endif |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 904 const IPC::ChannelHandle& channel_handle, | 905 const IPC::ChannelHandle& channel_handle, |
| 905 base::ProcessHandle renderer_process_for_gpu, | 906 base::ProcessHandle renderer_process_for_gpu, |
| 906 const content::GPUInfo& gpu_info) { | 907 const content::GPUInfo& gpu_info) { |
| 907 callback.Run(channel_handle, gpu_info); | 908 callback.Run(channel_handle, gpu_info); |
| 908 } | 909 } |
| 909 | 910 |
| 910 void GpuProcessHost::CreateCommandBufferError( | 911 void GpuProcessHost::CreateCommandBufferError( |
| 911 const CreateCommandBufferCallback& callback, int32 route_id) { | 912 const CreateCommandBufferCallback& callback, int32 route_id) { |
| 912 callback.Run(route_id); | 913 callback.Run(route_id); |
| 913 } | 914 } |
| OLD | NEW |