| 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 29 matching lines...) Expand all Loading... |
| 40 const gfx::Rect& display_bounds, | 40 const gfx::Rect& display_bounds, |
| 41 const gfx::RectF& uv_rect) override; | 41 const gfx::RectF& uv_rect) override; |
| 42 uint64_t ShareGroupTracingGUID() const override; | 42 uint64_t ShareGroupTracingGUID() const override; |
| 43 void SetErrorMessageCallback( | 43 void SetErrorMessageCallback( |
| 44 const base::Callback<void(const char*, int32_t)>& callback) override; | 44 const base::Callback<void(const char*, int32_t)>& callback) override; |
| 45 std::unique_ptr<ScopedVisibility> ClientBecameVisible() override; | 45 std::unique_ptr<ScopedVisibility> ClientBecameVisible() override; |
| 46 void ClientBecameNotVisible( | 46 void ClientBecameNotVisible( |
| 47 std::unique_ptr<ScopedVisibility> visibility) override; | 47 std::unique_ptr<ScopedVisibility> visibility) override; |
| 48 bool AnyClientsVisible() const override; | 48 bool AnyClientsVisible() const override; |
| 49 | 49 |
| 50 std::unique_ptr<ScopedBusy> ClientBecameBusy() override; |
| 51 void ClientBecameNotBusy(std::unique_ptr<ScopedBusy> busy) override; |
| 52 void SetIdleCallback(const base::Closure& callback) override; |
| 53 |
| 50 void CallAllSyncPointCallbacks(); | 54 void CallAllSyncPointCallbacks(); |
| 51 | 55 |
| 52 typedef base::Callback<void(int plane_z_order, | 56 typedef base::Callback<void(int plane_z_order, |
| 53 gfx::OverlayTransform plane_transform, | 57 gfx::OverlayTransform plane_transform, |
| 54 unsigned overlay_texture_id, | 58 unsigned overlay_texture_id, |
| 55 const gfx::Rect& display_bounds, | 59 const gfx::Rect& display_bounds, |
| 56 const gfx::RectF& crop_rect)> | 60 const gfx::RectF& crop_rect)> |
| 57 ScheduleOverlayPlaneCallback; | 61 ScheduleOverlayPlaneCallback; |
| 58 void SetScheduleOverlayPlaneCallback( | 62 void SetScheduleOverlayPlaneCallback( |
| 59 const ScheduleOverlayPlaneCallback& schedule_overlay_plane_callback); | 63 const ScheduleOverlayPlaneCallback& schedule_overlay_plane_callback); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 71 uint32_t num_visible_clients_ = 0; | 75 uint32_t num_visible_clients_ = 0; |
| 72 | 76 |
| 73 base::WeakPtrFactory<TestContextSupport> weak_ptr_factory_; | 77 base::WeakPtrFactory<TestContextSupport> weak_ptr_factory_; |
| 74 | 78 |
| 75 DISALLOW_COPY_AND_ASSIGN(TestContextSupport); | 79 DISALLOW_COPY_AND_ASSIGN(TestContextSupport); |
| 76 }; | 80 }; |
| 77 | 81 |
| 78 } // namespace cc | 82 } // namespace cc |
| 79 | 83 |
| 80 #endif // CC_TEST_TEST_CONTEXT_SUPPORT_H_ | 84 #endif // CC_TEST_TEST_CONTEXT_SUPPORT_H_ |
| OLD | NEW |