OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_ |
6 #define UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_ | 6 #define UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 int add_framebuffer_call_count_; | 109 int add_framebuffer_call_count_; |
110 int remove_framebuffer_call_count_; | 110 int remove_framebuffer_call_count_; |
111 int page_flip_call_count_; | 111 int page_flip_call_count_; |
112 int overlay_flip_call_count_; | 112 int overlay_flip_call_count_; |
113 | 113 |
114 bool set_crtc_expectation_; | 114 bool set_crtc_expectation_; |
115 bool add_framebuffer_expectation_; | 115 bool add_framebuffer_expectation_; |
116 bool page_flip_expectation_; | 116 bool page_flip_expectation_; |
117 bool create_dumb_buffer_expectation_; | 117 bool create_dumb_buffer_expectation_; |
118 | 118 |
| 119 bool use_sync_flips_; |
| 120 |
119 uint32_t current_framebuffer_; | 121 uint32_t current_framebuffer_; |
120 | 122 |
121 std::vector<skia::RefPtr<SkSurface> > buffers_; | 123 std::vector<skia::RefPtr<SkSurface> > buffers_; |
122 | 124 |
123 std::queue<PageFlipCallback> callbacks_; | 125 std::queue<PageFlipCallback> callbacks_; |
124 | 126 |
125 DISALLOW_COPY_AND_ASSIGN(MockDriWrapper); | 127 DISALLOW_COPY_AND_ASSIGN(MockDriWrapper); |
126 }; | 128 }; |
127 | 129 |
128 } // namespace ui | 130 } // namespace ui |
129 | 131 |
130 #endif // UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_ | 132 #endif // UI_OZONE_PLATFORM_DRI_TEST_MOCK_DRI_WRAPPER_H_ |
OLD | NEW |