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

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

Issue 2409923002: cc: Rename SwapBuffers on CompositorFrameSink to SubmitCompositorFrame (Closed)
Patch Set: swap-to-submit: rebase Created 4 years, 2 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/layer_tree_test.cc ('k') | cc/test/stub_layer_tree_host_client.h » ('j') | 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 class TestScheduler : public Scheduler { 121 class TestScheduler : public Scheduler {
122 public: 122 public:
123 TestScheduler( 123 TestScheduler(
124 base::SimpleTestTickClock* now_src, 124 base::SimpleTestTickClock* now_src,
125 SchedulerClient* client, 125 SchedulerClient* client,
126 const SchedulerSettings& scheduler_settings, 126 const SchedulerSettings& scheduler_settings,
127 int layer_tree_host_id, 127 int layer_tree_host_id,
128 OrderedSimpleTaskRunner* task_runner, 128 OrderedSimpleTaskRunner* task_runner,
129 std::unique_ptr<CompositorTimingHistory> compositor_timing_history); 129 std::unique_ptr<CompositorTimingHistory> compositor_timing_history);
130 130
131 bool SwapThrottled() const { return state_machine_.SwapThrottled(); } 131 bool IsDrawThrottled() const { return state_machine_.IsDrawThrottled(); }
132 132
133 bool NeedsBeginMainFrame() const { 133 bool NeedsBeginMainFrame() const {
134 return state_machine_.needs_begin_main_frame(); 134 return state_machine_.needs_begin_main_frame();
135 } 135 }
136 136
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 }
(...skipping 26 matching lines...) Expand all
168 168
169 private: 169 private:
170 base::SimpleTestTickClock* now_src_; 170 base::SimpleTestTickClock* now_src_;
171 171
172 DISALLOW_COPY_AND_ASSIGN(TestScheduler); 172 DISALLOW_COPY_AND_ASSIGN(TestScheduler);
173 }; 173 };
174 174
175 } // namespace cc 175 } // namespace cc
176 176
177 #endif // CC_TEST_SCHEDULER_TEST_COMMON_H_ 177 #endif // CC_TEST_SCHEDULER_TEST_COMMON_H_
OLDNEW
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/test/stub_layer_tree_host_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698