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/geometry/rect.h" | 9 #include "ui/gfx/geometry/rect.h" |
10 #include "ui/gfx/overlay_transform.h" | 10 #include "ui/gfx/overlay_transform.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 // This method is not stateful and needs to be re-scheduled every frame. | 33 // This method is not stateful and needs to be re-scheduled every frame. |
34 virtual void ScheduleOverlayPlane(int plane_z_order, | 34 virtual void ScheduleOverlayPlane(int plane_z_order, |
35 gfx::OverlayTransform plane_transform, | 35 gfx::OverlayTransform plane_transform, |
36 unsigned overlay_texture_id, | 36 unsigned overlay_texture_id, |
37 const gfx::Rect& display_bounds, | 37 const gfx::Rect& display_bounds, |
38 const gfx::RectF& uv_rect) = 0; | 38 const gfx::RectF& uv_rect) = 0; |
39 | 39 |
40 virtual uint32 InsertFutureSyncPointCHROMIUM() = 0; | 40 virtual uint32 InsertFutureSyncPointCHROMIUM() = 0; |
41 virtual void RetireSyncPointCHROMIUM(uint32 sync_point) = 0; | 41 virtual void RetireSyncPointCHROMIUM(uint32 sync_point) = 0; |
42 | 42 |
| 43 virtual bool IsContextLost() = 0; |
| 44 |
43 protected: | 45 protected: |
44 ContextSupport() {} | 46 ContextSupport() {} |
45 virtual ~ContextSupport() {} | 47 virtual ~ContextSupport() {} |
46 }; | 48 }; |
47 | 49 |
48 } | 50 } |
49 | 51 |
50 #endif // GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_ | 52 #endif // GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_ |
OLD | NEW |