Chromium Code Reviews| 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. | |
|
piman
2014/03/26 03:43:33
You may want to mention that this is not stateful,
| |
| 38 virtual void ScheduleOverlayPlane(int plane_z_order, | |
| 39 unsigned plane_transform, | |
| 40 unsigned overlay_texture_id, | |
| 41 const gfx::Rect& display_bounds, | |
| 42 gfx::RectF crop_rect) = 0; | |
| 43 | |
| 36 protected: | 44 protected: |
| 37 ContextSupport() {} | 45 ContextSupport() {} |
| 38 virtual ~ContextSupport() {} | 46 virtual ~ContextSupport() {} |
| 39 }; | 47 }; |
| 40 | 48 |
| 41 } | 49 } |
| 42 | 50 |
| 43 #endif // GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_ | 51 #endif // GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_ |
| OLD | NEW |