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 CC_TEST_TEST_CONTEXT_SUPPORT_H_ | 5 #ifndef CC_TEST_TEST_CONTEXT_SUPPORT_H_ |
6 #define CC_TEST_TEST_CONTEXT_SUPPORT_H_ | 6 #define CC_TEST_TEST_CONTEXT_SUPPORT_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 // gpu::ContextSupport implementation. | 25 // gpu::ContextSupport implementation. |
26 void SignalSyncPoint(uint32 sync_point, | 26 void SignalSyncPoint(uint32 sync_point, |
27 const base::Closure& callback) override; | 27 const base::Closure& callback) override; |
28 void SignalSyncToken(const gpu::SyncToken& sync_token, | 28 void SignalSyncToken(const gpu::SyncToken& sync_token, |
29 const base::Closure& callback) override; | 29 const base::Closure& callback) override; |
30 void SignalQuery(uint32 query, const base::Closure& callback) override; | 30 void SignalQuery(uint32 query, const base::Closure& callback) override; |
31 void SetSurfaceVisible(bool visible) override; | 31 void SetSurfaceVisible(bool visible) override; |
32 void SetAggressivelyFreeResources(bool aggressively_free_resources) override; | 32 void SetAggressivelyFreeResources(bool aggressively_free_resources) override; |
33 void Swap() override; | 33 void Swap() override; |
34 void PartialSwapBuffers(const gfx::Rect& sub_buffer) override; | 34 void PartialSwapBuffers(const gfx::Rect& sub_buffer) override; |
| 35 void CommitOverlayPlanes() override; |
35 uint32 InsertFutureSyncPointCHROMIUM() override; | 36 uint32 InsertFutureSyncPointCHROMIUM() override; |
36 void RetireSyncPointCHROMIUM(uint32 sync_point) override; | 37 void RetireSyncPointCHROMIUM(uint32 sync_point) override; |
37 void ScheduleOverlayPlane(int plane_z_order, | 38 void ScheduleOverlayPlane(int plane_z_order, |
38 gfx::OverlayTransform plane_transform, | 39 gfx::OverlayTransform plane_transform, |
39 unsigned overlay_texture_id, | 40 unsigned overlay_texture_id, |
40 const gfx::Rect& display_bounds, | 41 const gfx::Rect& display_bounds, |
41 const gfx::RectF& uv_rect) override; | 42 const gfx::RectF& uv_rect) override; |
42 uint64_t ShareGroupTracingGUID() const override; | 43 uint64_t ShareGroupTracingGUID() const override; |
43 | 44 |
44 void CallAllSyncPointCallbacks(); | 45 void CallAllSyncPointCallbacks(); |
(...skipping 24 matching lines...) Expand all Loading... |
69 bool out_of_order_callbacks_; | 70 bool out_of_order_callbacks_; |
70 | 71 |
71 base::WeakPtrFactory<TestContextSupport> weak_ptr_factory_; | 72 base::WeakPtrFactory<TestContextSupport> weak_ptr_factory_; |
72 | 73 |
73 DISALLOW_COPY_AND_ASSIGN(TestContextSupport); | 74 DISALLOW_COPY_AND_ASSIGN(TestContextSupport); |
74 }; | 75 }; |
75 | 76 |
76 } // namespace cc | 77 } // namespace cc |
77 | 78 |
78 #endif // CC_TEST_TEST_CONTEXT_SUPPORT_H_ | 79 #endif // CC_TEST_TEST_CONTEXT_SUPPORT_H_ |
OLD | NEW |