| 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 24 matching lines...) Expand all Loading... |
| 35 #include "ipc/ipc_switches.h" | 35 #include "ipc/ipc_switches.h" |
| 36 #include "ui/gfx/gl/gl_context.h" | 36 #include "ui/gfx/gl/gl_context.h" |
| 37 #include "ui/gfx/gl/gl_implementation.h" | 37 #include "ui/gfx/gl/gl_implementation.h" |
| 38 #include "ui/gfx/gl/gl_switches.h" | 38 #include "ui/gfx/gl/gl_switches.h" |
| 39 | 39 |
| 40 #if defined(TOOLKIT_GTK) | 40 #if defined(TOOLKIT_GTK) |
| 41 #include "ui/gfx/gtk_native_view_id_manager.h" | 41 #include "ui/gfx/gtk_native_view_id_manager.h" |
| 42 #endif | 42 #endif |
| 43 | 43 |
| 44 #if defined(OS_WIN) && !defined(USE_AURA) | 44 #if defined(OS_WIN) && !defined(USE_AURA) |
| 45 #include "ui/gfx/surface/accelerated_surface_win.h" | 45 #include "ui/surface/accelerated_surface_win.h" |
| 46 #endif | 46 #endif |
| 47 | 47 |
| 48 using content::BrowserThread; | 48 using content::BrowserThread; |
| 49 using content::ChildProcessHost; | 49 using content::ChildProcessHost; |
| 50 | 50 |
| 51 bool GpuProcessHost::gpu_enabled_ = true; | 51 bool GpuProcessHost::gpu_enabled_ = true; |
| 52 bool GpuProcessHost::hardware_gpu_enabled_ = true; | 52 bool GpuProcessHost::hardware_gpu_enabled_ = true; |
| 53 | 53 |
| 54 namespace { | 54 namespace { |
| 55 | 55 |
| (...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 798 const IPC::ChannelHandle& channel_handle, | 798 const IPC::ChannelHandle& channel_handle, |
| 799 base::ProcessHandle renderer_process_for_gpu, | 799 base::ProcessHandle renderer_process_for_gpu, |
| 800 const content::GPUInfo& gpu_info) { | 800 const content::GPUInfo& gpu_info) { |
| 801 callback.Run(channel_handle, gpu_info); | 801 callback.Run(channel_handle, gpu_info); |
| 802 } | 802 } |
| 803 | 803 |
| 804 void GpuProcessHost::CreateCommandBufferError( | 804 void GpuProcessHost::CreateCommandBufferError( |
| 805 const CreateCommandBufferCallback& callback, int32 route_id) { | 805 const CreateCommandBufferCallback& callback, int32 route_id) { |
| 806 callback.Run(route_id); | 806 callback.Run(route_id); |
| 807 } | 807 } |
| OLD | NEW |