| 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 28 matching lines...) Expand all Loading... |
| 39 #include "ui/gl/gl_switches.h" | 39 #include "ui/gl/gl_switches.h" |
| 40 | 40 |
| 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::BrowserChildProcessHostImpl; |
| 49 using content::BrowserThread; | 50 using content::BrowserThread; |
| 50 using content::ChildProcessHost; | 51 using content::ChildProcessHost; |
| 51 using content::GpuChildThread; | 52 using content::GpuChildThread; |
| 52 using content::GpuProcess; | 53 using content::GpuProcess; |
| 53 using content::GpuSurfaceTracker; | 54 using content::GpuSurfaceTracker; |
| 54 using content::RenderProcessHost; | 55 using content::RenderProcessHost; |
| 55 using content::RenderWidgetHelper; | 56 using content::RenderWidgetHelper; |
| 56 using content::RenderWidgetHost; | 57 using content::RenderWidgetHost; |
| 57 using content::RenderWidgetHostImpl; | 58 using content::RenderWidgetHostImpl; |
| 58 | 59 |
| (...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 954 | 955 |
| 955 void GpuProcessHost::CreateCommandBufferError( | 956 void GpuProcessHost::CreateCommandBufferError( |
| 956 const CreateCommandBufferCallback& callback, int32 route_id) { | 957 const CreateCommandBufferCallback& callback, int32 route_id) { |
| 957 callback.Run(route_id); | 958 callback.Run(route_id); |
| 958 } | 959 } |
| 959 | 960 |
| 960 void GpuProcessHost::CreateImageError( | 961 void GpuProcessHost::CreateImageError( |
| 961 const CreateImageCallback& callback, const gfx::Size size) { | 962 const CreateImageCallback& callback, const gfx::Size size) { |
| 962 callback.Run(size); | 963 callback.Run(size); |
| 963 } | 964 } |
| OLD | NEW |