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 15 matching lines...) Expand all Loading... |
26 #include "content/gpu/gpu_child_thread.h" | 26 #include "content/gpu/gpu_child_thread.h" |
27 #include "content/gpu/gpu_process.h" | 27 #include "content/gpu/gpu_process.h" |
28 #include "content/public/browser/browser_thread.h" | 28 #include "content/public/browser/browser_thread.h" |
29 #include "content/public/browser/content_browser_client.h" | 29 #include "content/public/browser/content_browser_client.h" |
30 #include "content/public/browser/render_widget_host_view.h" | 30 #include "content/public/browser/render_widget_host_view.h" |
31 #include "content/public/common/content_switches.h" | 31 #include "content/public/common/content_switches.h" |
32 #include "content/public/common/result_codes.h" | 32 #include "content/public/common/result_codes.h" |
33 #include "gpu/command_buffer/service/gpu_switches.h" | 33 #include "gpu/command_buffer/service/gpu_switches.h" |
34 #include "ipc/ipc_channel_handle.h" | 34 #include "ipc/ipc_channel_handle.h" |
35 #include "ipc/ipc_switches.h" | 35 #include "ipc/ipc_switches.h" |
36 #include "ui/gfx/gl/gl_context.h" | 36 #include "ui/gl/gl_context.h" |
37 #include "ui/gfx/gl/gl_implementation.h" | 37 #include "ui/gl/gl_implementation.h" |
38 #include "ui/gfx/gl/gl_switches.h" | 38 #include "ui/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/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; |
(...skipping 749 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 |