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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 124 |
125 // Make the surface's context current. | 125 // Make the surface's context current. |
126 bool MakeCurrent(); | 126 bool MakeCurrent(); |
127 | 127 |
128 // Set the default swap interval on the surface. | 128 // Set the default swap interval on the surface. |
129 static void SetSwapInterval(gfx::GLContext* context); | 129 static void SetSwapInterval(gfx::GLContext* context); |
130 | 130 |
131 void Suspend(); | 131 void Suspend(); |
132 | 132 |
133 GpuChannelManager* manager() const { return manager_; } | 133 GpuChannelManager* manager() const { return manager_; } |
| 134 GpuCommandBufferStub* stub() const { return stub_.get(); } |
134 | 135 |
135 private: | 136 private: |
136 gpu::GpuScheduler* Scheduler(); | 137 gpu::GpuScheduler* Scheduler(); |
137 gpu::gles2::GLES2Decoder* Decoder(); | 138 gpu::gles2::GLES2Decoder* Decoder(); |
138 | 139 |
139 // IPC::Message handlers. | 140 // IPC::Message handlers. |
140 void OnBufferPresented(uint32 sync_point); | 141 void OnBufferPresented(uint32 sync_point); |
141 void OnResizeViewACK(); | 142 void OnResizeViewACK(); |
142 void OnSetFrontSurfaceIsProtected(bool is_protected, | 143 void OnSetFrontSurfaceIsProtected(bool is_protected, |
143 uint32 protection_state_id); | 144 uint32 protection_state_id); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 gfx::Size new_size_; | 189 gfx::Size new_size_; |
189 bool transport_; | 190 bool transport_; |
190 bool did_set_swap_interval_; | 191 bool did_set_swap_interval_; |
191 | 192 |
192 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface); | 193 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface); |
193 }; | 194 }; |
194 | 195 |
195 #endif // defined(ENABLE_GPU) | 196 #endif // defined(ENABLE_GPU) |
196 | 197 |
197 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ | 198 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ |
OLD | NEW |