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 30 matching lines...) Expand all Loading... |
41 #if defined(TOOLKIT_GTK) | 41 #if defined(TOOLKIT_GTK) |
42 #include "ui/gfx/gtk_native_view_id_manager.h" | 42 #include "ui/gfx/gtk_native_view_id_manager.h" |
43 #endif | 43 #endif |
44 | 44 |
45 #if defined(OS_WIN) | 45 #if defined(OS_WIN) |
46 #include "ui/surface/accelerated_surface_win.h" | 46 #include "ui/surface/accelerated_surface_win.h" |
47 #endif | 47 #endif |
48 | 48 |
49 using content::BrowserThread; | 49 using content::BrowserThread; |
50 using content::ChildProcessHost; | 50 using content::ChildProcessHost; |
| 51 using content::GpuChildThread; |
| 52 using content::GpuProcess; |
51 using content::RenderProcessHost; | 53 using content::RenderProcessHost; |
52 using content::RenderWidgetHelper; | 54 using content::RenderWidgetHelper; |
53 using content::RenderWidgetHost; | 55 using content::RenderWidgetHost; |
54 using content::RenderWidgetHostImpl; | 56 using content::RenderWidgetHostImpl; |
55 | 57 |
56 bool GpuProcessHost::gpu_enabled_ = true; | 58 bool GpuProcessHost::gpu_enabled_ = true; |
57 bool GpuProcessHost::hardware_gpu_enabled_ = true; | 59 bool GpuProcessHost::hardware_gpu_enabled_ = true; |
58 | 60 |
59 namespace { | 61 namespace { |
60 | 62 |
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
951 | 953 |
952 void GpuProcessHost::CreateCommandBufferError( | 954 void GpuProcessHost::CreateCommandBufferError( |
953 const CreateCommandBufferCallback& callback, int32 route_id) { | 955 const CreateCommandBufferCallback& callback, int32 route_id) { |
954 callback.Run(route_id); | 956 callback.Run(route_id); |
955 } | 957 } |
956 | 958 |
957 void GpuProcessHost::CreateImageError( | 959 void GpuProcessHost::CreateImageError( |
958 const CreateImageCallback& callback, const gfx::Size size) { | 960 const CreateImageCallback& callback, const gfx::Size size) { |
959 callback.Run(size); | 961 callback.Run(size); |
960 } | 962 } |
OLD | NEW |