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 #ifndef CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ | 5 #ifndef CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ |
6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ | 6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #if defined(ENABLE_GPU) | 9 #if defined(ENABLE_GPU) |
10 | 10 |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
18 #include "ipc/ipc_channel.h" | 18 #include "ipc/ipc_channel.h" |
19 #include "ipc/ipc_message.h" | 19 #include "ipc/ipc_message.h" |
20 #include "ui/gfx/gl/gl_surface.h" | 20 #include "ui/gfx/gl/gl_surface.h" |
21 #include "ui/gfx/native_widget_types.h" | 21 #include "ui/gfx/native_widget_types.h" |
22 #include "ui/gfx/rect.h" | 22 #include "ui/gfx/rect.h" |
23 #include "ui/gfx/size.h" | 23 #include "ui/gfx/size.h" |
24 #include "ui/gfx/surface/transport_dib.h" | 24 #include "ui/surface/transport_dib.h" |
25 | 25 |
26 class GpuChannelManager; | 26 class GpuChannelManager; |
27 class GpuCommandBufferStub; | 27 class GpuCommandBufferStub; |
28 | 28 |
29 struct GpuHostMsg_AcceleratedSurfaceNew_Params; | 29 struct GpuHostMsg_AcceleratedSurfaceNew_Params; |
30 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; | 30 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; |
31 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; | 31 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; |
32 struct GpuHostMsg_AcceleratedSurfaceRelease_Params; | 32 struct GpuHostMsg_AcceleratedSurfaceRelease_Params; |
33 | 33 |
34 namespace gfx { | 34 namespace gfx { |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 gfx::Size new_size_; | 182 gfx::Size new_size_; |
183 bool transport_; | 183 bool transport_; |
184 bool did_set_swap_interval_; | 184 bool did_set_swap_interval_; |
185 | 185 |
186 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface); | 186 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface); |
187 }; | 187 }; |
188 | 188 |
189 #endif // defined(ENABLE_GPU) | 189 #endif // defined(ENABLE_GPU) |
190 | 190 |
191 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ | 191 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ |
OLD | NEW |