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 26 matching lines...) Expand all Loading... |
37 void PartialSwapBuffers(const gfx::Rect& sub_buffer) override; | 37 void PartialSwapBuffers(const gfx::Rect& sub_buffer) override; |
38 void CommitOverlayPlanes() override; | 38 void CommitOverlayPlanes() override; |
39 void ScheduleOverlayPlane(int plane_z_order, | 39 void ScheduleOverlayPlane(int plane_z_order, |
40 gfx::OverlayTransform plane_transform, | 40 gfx::OverlayTransform plane_transform, |
41 unsigned overlay_texture_id, | 41 unsigned overlay_texture_id, |
42 const gfx::Rect& display_bounds, | 42 const gfx::Rect& display_bounds, |
43 const gfx::RectF& uv_rect) override; | 43 const gfx::RectF& uv_rect) override; |
44 uint64_t ShareGroupTracingGUID() const override; | 44 uint64_t ShareGroupTracingGUID() const override; |
45 void SetErrorMessageCallback( | 45 void SetErrorMessageCallback( |
46 const base::Callback<void(const char*, int32_t)>& callback) override; | 46 const base::Callback<void(const char*, int32_t)>& callback) override; |
| 47 void AddLatencyInfo( |
| 48 const std::vector<ui::LatencyInfo>& latency_info) override; |
47 | 49 |
48 void CallAllSyncPointCallbacks(); | 50 void CallAllSyncPointCallbacks(); |
49 | 51 |
50 typedef base::Callback<void(int plane_z_order, | 52 typedef base::Callback<void(int plane_z_order, |
51 gfx::OverlayTransform plane_transform, | 53 gfx::OverlayTransform plane_transform, |
52 unsigned overlay_texture_id, | 54 unsigned overlay_texture_id, |
53 const gfx::Rect& display_bounds, | 55 const gfx::Rect& display_bounds, |
54 const gfx::RectF& crop_rect)> | 56 const gfx::RectF& crop_rect)> |
55 ScheduleOverlayPlaneCallback; | 57 ScheduleOverlayPlaneCallback; |
56 void SetScheduleOverlayPlaneCallback( | 58 void SetScheduleOverlayPlaneCallback( |
(...skipping 11 matching lines...) Expand all Loading... |
68 bool out_of_order_callbacks_; | 70 bool out_of_order_callbacks_; |
69 | 71 |
70 base::WeakPtrFactory<TestContextSupport> weak_ptr_factory_; | 72 base::WeakPtrFactory<TestContextSupport> weak_ptr_factory_; |
71 | 73 |
72 DISALLOW_COPY_AND_ASSIGN(TestContextSupport); | 74 DISALLOW_COPY_AND_ASSIGN(TestContextSupport); |
73 }; | 75 }; |
74 | 76 |
75 } // namespace cc | 77 } // namespace cc |
76 | 78 |
77 #endif // CC_TEST_TEST_CONTEXT_SUPPORT_H_ | 79 #endif // CC_TEST_TEST_CONTEXT_SUPPORT_H_ |
OLD | NEW |