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 | 7 |
8 #if defined(ENABLE_GPU) | 8 #if defined(ENABLE_GPU) |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 16 matching lines...) Expand all Loading... |
27 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; | 27 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; |
28 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; | 28 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; |
29 struct GpuHostMsg_AcceleratedSurfaceRelease_Params; | 29 struct GpuHostMsg_AcceleratedSurfaceRelease_Params; |
30 | 30 |
31 namespace gfx { | 31 namespace gfx { |
32 class GLSurface; | 32 class GLSurface; |
33 } | 33 } |
34 | 34 |
35 namespace gpu { | 35 namespace gpu { |
36 class GpuScheduler; | 36 class GpuScheduler; |
37 struct RefCountedCounter; | 37 class PreemptionFlag; |
38 namespace gles2 { | 38 namespace gles2 { |
39 class GLES2Decoder; | 39 class GLES2Decoder; |
40 } | 40 } |
41 } | 41 } |
42 | 42 |
43 namespace content { | 43 namespace content { |
44 class GpuChannelManager; | 44 class GpuChannelManager; |
45 class GpuCommandBufferStub; | 45 class GpuCommandBufferStub; |
46 | 46 |
47 // The GPU process is agnostic as to how it displays results. On some platforms | 47 // The GPU process is agnostic as to how it displays results. On some platforms |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 GpuHostMsg_AcceleratedSurfaceRelease_Params params); | 117 GpuHostMsg_AcceleratedSurfaceRelease_Params params); |
118 void SendResizeView(const gfx::Size& size); | 118 void SendResizeView(const gfx::Size& size); |
119 void SendUpdateVSyncParameters( | 119 void SendUpdateVSyncParameters( |
120 base::TimeTicks timebase, base::TimeDelta interval); | 120 base::TimeTicks timebase, base::TimeDelta interval); |
121 | 121 |
122 // Whether or not we should execute more commands. | 122 // Whether or not we should execute more commands. |
123 void SetScheduled(bool is_scheduled); | 123 void SetScheduled(bool is_scheduled); |
124 | 124 |
125 void DeferToFence(base::Closure task); | 125 void DeferToFence(base::Closure task); |
126 | 126 |
127 void SetPreemptByCounter( | 127 void SetPreemptByFlag( |
128 scoped_refptr<gpu::RefCountedCounter> preempt_by_counter); | 128 scoped_refptr<gpu::PreemptionFlag> preemption_flag); |
129 | 129 |
130 // Make the surface's context current. | 130 // Make the surface's context current. |
131 bool MakeCurrent(); | 131 bool MakeCurrent(); |
132 | 132 |
133 // Set the default swap interval on the surface. | 133 // Set the default swap interval on the surface. |
134 static void SetSwapInterval(gfx::GLContext* context); | 134 static void SetSwapInterval(gfx::GLContext* context); |
135 | 135 |
136 void Suspend(); | 136 void Suspend(); |
137 | 137 |
138 GpuChannelManager* manager() const { return manager_; } | 138 GpuChannelManager* manager() const { return manager_; } |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 bool did_set_swap_interval_; | 200 bool did_set_swap_interval_; |
201 | 201 |
202 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface); | 202 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface); |
203 }; | 203 }; |
204 | 204 |
205 } // namespace content | 205 } // namespace content |
206 | 206 |
207 #endif // defined(ENABLE_GPU) | 207 #endif // defined(ENABLE_GPU) |
208 | 208 |
209 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ | 209 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ |
OLD | NEW |