OLD | NEW |
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 #include "cc/scheduler/scheduler.h" | 4 #include "cc/scheduler/scheduler.h" |
5 | 5 |
6 #include <string> | 6 #include <string> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 | 249 |
250 bool draw_will_happen_; | 250 bool draw_will_happen_; |
251 bool swap_will_happen_if_draw_happens_; | 251 bool swap_will_happen_if_draw_happens_; |
252 bool automatic_swap_ack_; | 252 bool automatic_swap_ack_; |
253 int num_draws_; | 253 int num_draws_; |
254 bool log_anticipated_draw_time_change_; | 254 bool log_anticipated_draw_time_change_; |
255 bool swap_contains_incomplete_tile_; | 255 bool swap_contains_incomplete_tile_; |
256 bool redraw_will_happen_if_update_visible_tiles_happens_; | 256 bool redraw_will_happen_if_update_visible_tiles_happens_; |
257 base::TimeTicks posted_begin_impl_frame_deadline_; | 257 base::TimeTicks posted_begin_impl_frame_deadline_; |
258 std::vector<const char*> actions_; | 258 std::vector<const char*> actions_; |
259 std::vector<scoped_refptr<base::debug::ConvertableToTraceFormat> > states_; | 259 std::vector<scoped_refptr<base::debug::ConvertableToTraceFormat>> states_; |
260 scoped_ptr<TestScheduler> scheduler_; | 260 scoped_ptr<TestScheduler> scheduler_; |
261 scoped_refptr<TestNowSource> now_src_; | 261 scoped_refptr<TestNowSource> now_src_; |
262 FakeBeginFrameSourceForFakeSchedulerClient fake_frame_source_; | 262 FakeBeginFrameSourceForFakeSchedulerClient fake_frame_source_; |
263 }; | 263 }; |
264 | 264 |
265 void InitializeOutputSurfaceAndFirstCommit(Scheduler* scheduler, | 265 void InitializeOutputSurfaceAndFirstCommit(Scheduler* scheduler, |
266 FakeSchedulerClient* client) { | 266 FakeSchedulerClient* client) { |
267 TRACE_EVENT0("cc", | 267 TRACE_EVENT0("cc", |
268 "SchedulerUnitTest::InitializeOutputSurfaceAndFirstCommit"); | 268 "SchedulerUnitTest::InitializeOutputSurfaceAndFirstCommit"); |
269 | 269 |
(...skipping 1692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1962 | 1962 |
1963 client.Reset(); | 1963 client.Reset(); |
1964 scheduler->SetVisible(false); | 1964 scheduler->SetVisible(false); |
1965 // Sync tree should be forced to activate. | 1965 // Sync tree should be forced to activate. |
1966 EXPECT_ACTION("SetNeedsBeginFrames(false)", client, 0, 2); | 1966 EXPECT_ACTION("SetNeedsBeginFrames(false)", client, 0, 2); |
1967 EXPECT_ACTION("ScheduledActionActivateSyncTree", client, 1, 2); | 1967 EXPECT_ACTION("ScheduledActionActivateSyncTree", client, 1, 2); |
1968 } | 1968 } |
1969 | 1969 |
1970 } // namespace | 1970 } // namespace |
1971 } // namespace cc | 1971 } // namespace cc |
OLD | NEW |