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 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 bool Initialize() override; | 168 bool Initialize() override; |
169 void Destroy() override; | 169 void Destroy() override; |
170 gfx::SwapResult SwapBuffers() override; | 170 gfx::SwapResult SwapBuffers() override; |
171 void SwapBuffersAsync(const SwapCompletionCallback& callback) override; | 171 void SwapBuffersAsync(const SwapCompletionCallback& callback) override; |
172 gfx::SwapResult PostSubBuffer(int x, int y, int width, int height) override; | 172 gfx::SwapResult PostSubBuffer(int x, int y, int width, int height) override; |
173 void PostSubBufferAsync(int x, | 173 void PostSubBufferAsync(int x, |
174 int y, | 174 int y, |
175 int width, | 175 int width, |
176 int height, | 176 int height, |
177 const SwapCompletionCallback& callback) override; | 177 const SwapCompletionCallback& callback) override; |
| 178 gfx::SwapResult CommitOverlayPlanes() override; |
| 179 void CommitOverlayPlanesAsync( |
| 180 const SwapCompletionCallback& callback) override; |
178 bool OnMakeCurrent(gfx::GLContext* context) override; | 181 bool OnMakeCurrent(gfx::GLContext* context) override; |
179 | 182 |
180 // ImageTransportSurface implementation. | 183 // ImageTransportSurface implementation. |
181 #if defined(OS_MACOSX) | 184 #if defined(OS_MACOSX) |
182 void OnBufferPresented( | 185 void OnBufferPresented( |
183 const AcceleratedSurfaceMsg_BufferPresented_Params& params) override; | 186 const AcceleratedSurfaceMsg_BufferPresented_Params& params) override; |
184 #endif | 187 #endif |
185 gfx::Size GetSize() override; | 188 gfx::Size GetSize() override; |
186 void SetLatencyInfo( | 189 void SetLatencyInfo( |
187 const std::vector<ui::LatencyInfo>& latency_info) override; | 190 const std::vector<ui::LatencyInfo>& latency_info) override; |
(...skipping 20 matching lines...) Expand all Loading... |
208 bool did_set_swap_interval_; | 211 bool did_set_swap_interval_; |
209 std::vector<ui::LatencyInfo> latency_info_; | 212 std::vector<ui::LatencyInfo> latency_info_; |
210 base::WeakPtrFactory<PassThroughImageTransportSurface> weak_ptr_factory_; | 213 base::WeakPtrFactory<PassThroughImageTransportSurface> weak_ptr_factory_; |
211 | 214 |
212 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface); | 215 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface); |
213 }; | 216 }; |
214 | 217 |
215 } // namespace content | 218 } // namespace content |
216 | 219 |
217 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ | 220 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ |
OLD | NEW |