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 <vector> | 10 #include <vector> |
(...skipping 21 matching lines...) Expand all Loading... |
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 void CommitOverlayPlanes() override; |
36 void ScheduleOverlayPlane(int plane_z_order, | 36 void ScheduleOverlayPlane(int plane_z_order, |
37 gfx::OverlayTransform plane_transform, | 37 gfx::OverlayTransform plane_transform, |
38 unsigned overlay_texture_id, | 38 unsigned overlay_texture_id, |
39 const gfx::Rect& display_bounds, | 39 const gfx::Rect& display_bounds, |
40 const gfx::RectF& uv_rect) override; | 40 const gfx::RectF& uv_rect) override; |
41 uint64_t ShareGroupTracingGUID() const override; | 41 uint64_t ShareGroupTracingGUID() const override; |
| 42 void SetErrorMessageCallback( |
| 43 const base::Callback<void(const char*, int32_t)>& callback) override; |
42 | 44 |
43 void CallAllSyncPointCallbacks(); | 45 void CallAllSyncPointCallbacks(); |
44 | 46 |
45 typedef base::Callback<void(int plane_z_order, | 47 typedef base::Callback<void(int plane_z_order, |
46 gfx::OverlayTransform plane_transform, | 48 gfx::OverlayTransform plane_transform, |
47 unsigned overlay_texture_id, | 49 unsigned overlay_texture_id, |
48 const gfx::Rect& display_bounds, | 50 const gfx::Rect& display_bounds, |
49 const gfx::RectF& crop_rect)> | 51 const gfx::RectF& crop_rect)> |
50 ScheduleOverlayPlaneCallback; | 52 ScheduleOverlayPlaneCallback; |
51 void SetScheduleOverlayPlaneCallback( | 53 void SetScheduleOverlayPlaneCallback( |
(...skipping 11 matching lines...) Expand all Loading... |
63 bool out_of_order_callbacks_; | 65 bool out_of_order_callbacks_; |
64 | 66 |
65 base::WeakPtrFactory<TestContextSupport> weak_ptr_factory_; | 67 base::WeakPtrFactory<TestContextSupport> weak_ptr_factory_; |
66 | 68 |
67 DISALLOW_COPY_AND_ASSIGN(TestContextSupport); | 69 DISALLOW_COPY_AND_ASSIGN(TestContextSupport); |
68 }; | 70 }; |
69 | 71 |
70 } // namespace cc | 72 } // namespace cc |
71 | 73 |
72 #endif // CC_TEST_TEST_CONTEXT_SUPPORT_H_ | 74 #endif // CC_TEST_TEST_CONTEXT_SUPPORT_H_ |
OLD | NEW |