OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 PassThroughImageTransportSurface(GpuChannelManager* manager, | 149 PassThroughImageTransportSurface(GpuChannelManager* manager, |
150 int32 render_view_id, | 150 int32 render_view_id, |
151 int32 renderer_id, | 151 int32 renderer_id, |
152 int32 command_buffer_id, | 152 int32 command_buffer_id, |
153 gfx::GLSurface* surface); | 153 gfx::GLSurface* surface); |
154 virtual ~PassThroughImageTransportSurface(); | 154 virtual ~PassThroughImageTransportSurface(); |
155 | 155 |
156 // GLSurface implementation. | 156 // GLSurface implementation. |
157 virtual bool Initialize() OVERRIDE; | 157 virtual bool Initialize() OVERRIDE; |
158 virtual void Destroy() OVERRIDE; | 158 virtual void Destroy() OVERRIDE; |
| 159 virtual bool SwapBuffers() OVERRIDE; |
| 160 virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE; |
159 | 161 |
160 // ImageTransportSurface implementation. | 162 // ImageTransportSurface implementation. |
161 virtual void OnNewSurfaceACK( | 163 virtual void OnNewSurfaceACK( |
162 uint64 surface_id, TransportDIB::Handle surface_handle) OVERRIDE; | 164 uint64 surface_id, TransportDIB::Handle surface_handle) OVERRIDE; |
163 virtual void OnBuffersSwappedACK() OVERRIDE; | 165 virtual void OnBuffersSwappedACK() OVERRIDE; |
164 virtual void OnPostSubBufferACK() OVERRIDE; | 166 virtual void OnPostSubBufferACK() OVERRIDE; |
165 virtual void OnResizeViewACK() OVERRIDE; | 167 virtual void OnResizeViewACK() OVERRIDE; |
166 virtual void OnResize(gfx::Size size) OVERRIDE; | 168 virtual void OnResize(gfx::Size size) OVERRIDE; |
167 | 169 |
168 private: | 170 private: |
169 scoped_ptr<ImageTransportHelper> helper_; | 171 scoped_ptr<ImageTransportHelper> helper_; |
170 | 172 |
171 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface); | 173 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface); |
172 }; | 174 }; |
173 | 175 |
174 #endif // defined(ENABLE_GPU) | 176 #endif // defined(ENABLE_GPU) |
175 | 177 |
176 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ | 178 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ |
OLD | NEW |