Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: cc/test/scheduler_test_common.h

Issue 2632563003: [cc] Calculate the correct latest_confirmed_sequence_number in cc::Scheduler. (Closed)
Patch Set: add todo for impl-side invalidations. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/test/fake_external_begin_frame_source.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_SCHEDULER_TEST_COMMON_H_ 5 #ifndef CC_TEST_SCHEDULER_TEST_COMMON_H_
6 #define CC_TEST_SCHEDULER_TEST_COMMON_H_ 6 #define CC_TEST_SCHEDULER_TEST_COMMON_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 BeginFrameSource& frame_source() { return *begin_frame_source_; } 137 BeginFrameSource& frame_source() { return *begin_frame_source_; }
138 138
139 bool MainThreadMissedLastDeadline() const { 139 bool MainThreadMissedLastDeadline() const {
140 return state_machine_.main_thread_missed_last_deadline(); 140 return state_machine_.main_thread_missed_last_deadline();
141 } 141 }
142 142
143 bool begin_frames_expected() const { 143 bool begin_frames_expected() const {
144 return begin_frame_source_ && observing_begin_frame_source_; 144 return begin_frame_source_ && observing_begin_frame_source_;
145 } 145 }
146 146
147 bool BeginFrameNeeded() const { return state_machine_.BeginFrameNeeded(); }
148
147 int current_frame_number() const { 149 int current_frame_number() const {
148 return state_machine_.current_frame_number(); 150 return state_machine_.current_frame_number();
149 } 151 }
150 152
151 bool needs_impl_side_invalidation() const { 153 bool needs_impl_side_invalidation() const {
152 return state_machine_.needs_impl_side_invalidation(); 154 return state_machine_.needs_impl_side_invalidation();
153 } 155 }
154 156
155 ~TestScheduler() override; 157 ~TestScheduler() override;
156 158
(...skipping 15 matching lines...) Expand all
172 174
173 private: 175 private:
174 base::SimpleTestTickClock* now_src_; 176 base::SimpleTestTickClock* now_src_;
175 177
176 DISALLOW_COPY_AND_ASSIGN(TestScheduler); 178 DISALLOW_COPY_AND_ASSIGN(TestScheduler);
177 }; 179 };
178 180
179 } // namespace cc 181 } // namespace cc
180 182
181 #endif // CC_TEST_SCHEDULER_TEST_COMMON_H_ 183 #endif // CC_TEST_SCHEDULER_TEST_COMMON_H_
OLDNEW
« no previous file with comments | « cc/test/fake_external_begin_frame_source.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698