OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_ | 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_ |
6 #define GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_ | 6 #define GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "ui/gfx/rect.h" | 9 #include "ui/gfx/rect.h" |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 virtual void SetSurfaceVisible(bool visible) = 0; | 26 virtual void SetSurfaceVisible(bool visible) = 0; |
27 | 27 |
28 virtual void SendManagedMemoryStats(const ManagedMemoryStats& stats) = 0; | 28 virtual void SendManagedMemoryStats(const ManagedMemoryStats& stats) = 0; |
29 | 29 |
30 virtual void Swap() = 0; | 30 virtual void Swap() = 0; |
31 virtual void PartialSwapBuffers(const gfx::Rect& sub_buffer) = 0; | 31 virtual void PartialSwapBuffers(const gfx::Rect& sub_buffer) = 0; |
32 | 32 |
33 virtual void SetSwapBuffersCompleteCallback( | 33 virtual void SetSwapBuffersCompleteCallback( |
34 const base::Closure& callback) = 0; | 34 const base::Closure& callback) = 0; |
35 | 35 |
| 36 // Schedule a texture to be presented as an overlay synchronously with the |
| 37 // primary surface during the next buffer swap. |
| 38 // This method is not stateful and needs to be re-scheduled every frame. |
| 39 virtual void ScheduleOverlayPlane(int plane_z_order, |
| 40 unsigned plane_transform, |
| 41 unsigned overlay_texture_id, |
| 42 const gfx::Rect& display_bounds, |
| 43 const gfx::RectF& uv_rect) = 0; |
| 44 |
36 protected: | 45 protected: |
37 ContextSupport() {} | 46 ContextSupport() {} |
38 virtual ~ContextSupport() {} | 47 virtual ~ContextSupport() {} |
39 }; | 48 }; |
40 | 49 |
41 } | 50 } |
42 | 51 |
43 #endif // GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_ | 52 #endif // GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_ |
OLD | NEW |