| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 namespace cc { | 22 namespace cc { |
| 23 | 23 |
| 24 class TestContextSupport : public gpu::ContextSupport { | 24 class TestContextSupport : public gpu::ContextSupport { |
| 25 public: | 25 public: |
| 26 TestContextSupport(); | 26 TestContextSupport(); |
| 27 ~TestContextSupport() override; | 27 ~TestContextSupport() override; |
| 28 | 28 |
| 29 // gpu::ContextSupport implementation. | 29 // gpu::ContextSupport implementation. |
| 30 void SignalSyncToken(const gpu::SyncToken& sync_token, | 30 void SignalSyncToken(const gpu::SyncToken& sync_token, |
| 31 const base::Closure& callback) override; | 31 const base::Closure& callback) override; |
| 32 bool IsFenceSyncReleased(uint64_t release) override; |
| 32 void SignalQuery(uint32_t query, const base::Closure& callback) override; | 33 void SignalQuery(uint32_t query, const base::Closure& callback) override; |
| 33 void SetAggressivelyFreeResources(bool aggressively_free_resources) override; | 34 void SetAggressivelyFreeResources(bool aggressively_free_resources) override; |
| 34 void Swap() override; | 35 void Swap() override; |
| 35 void SwapWithDamage(const gfx::Rect& damage) override; | 36 void SwapWithDamage(const gfx::Rect& damage) override; |
| 36 void PartialSwapBuffers(const gfx::Rect& sub_buffer) override; | 37 void PartialSwapBuffers(const gfx::Rect& sub_buffer) override; |
| 37 void CommitOverlayPlanes() override; | 38 void CommitOverlayPlanes() override; |
| 38 void ScheduleOverlayPlane(int plane_z_order, | 39 void ScheduleOverlayPlane(int plane_z_order, |
| 39 gfx::OverlayTransform plane_transform, | 40 gfx::OverlayTransform plane_transform, |
| 40 unsigned overlay_texture_id, | 41 unsigned overlay_texture_id, |
| 41 const gfx::Rect& display_bounds, | 42 const gfx::Rect& display_bounds, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 67 bool out_of_order_callbacks_; | 68 bool out_of_order_callbacks_; |
| 68 | 69 |
| 69 base::WeakPtrFactory<TestContextSupport> weak_ptr_factory_; | 70 base::WeakPtrFactory<TestContextSupport> weak_ptr_factory_; |
| 70 | 71 |
| 71 DISALLOW_COPY_AND_ASSIGN(TestContextSupport); | 72 DISALLOW_COPY_AND_ASSIGN(TestContextSupport); |
| 72 }; | 73 }; |
| 73 | 74 |
| 74 } // namespace cc | 75 } // namespace cc |
| 75 | 76 |
| 76 #endif // CC_TEST_TEST_CONTEXT_SUPPORT_H_ | 77 #endif // CC_TEST_TEST_CONTEXT_SUPPORT_H_ |
| OLD | NEW |