| 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 | 4 |
| 5 #include "cc/scheduler/scheduler.h" | 5 #include "cc/scheduler/scheduler.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/memory/scoped_vector.h" | |
| 12 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 13 #include "base/numerics/safe_conversions.h" | 12 #include "base/numerics/safe_conversions.h" |
| 14 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
| 15 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 16 #include "base/trace_event/trace_event.h" | 15 #include "base/trace_event/trace_event.h" |
| 17 #include "cc/test/begin_frame_args_test.h" | 16 #include "cc/test/begin_frame_args_test.h" |
| 18 #include "cc/test/ordered_simple_task_runner.h" | 17 #include "cc/test/ordered_simple_task_runner.h" |
| 19 #include "cc/test/scheduler_test_common.h" | 18 #include "cc/test/scheduler_test_common.h" |
| 20 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
| 21 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 3473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3495 scheduler_->SetImplLatencyTakesPriority(true); | 3494 scheduler_->SetImplLatencyTakesPriority(true); |
| 3496 scheduler_->SetChildrenNeedBeginFrames(true); | 3495 scheduler_->SetChildrenNeedBeginFrames(true); |
| 3497 | 3496 |
| 3498 EXPECT_SCOPED(AdvanceFrame()); | 3497 EXPECT_SCOPED(AdvanceFrame()); |
| 3499 EXPECT_TRUE(client_->begin_frame_is_sent_to_children()); | 3498 EXPECT_TRUE(client_->begin_frame_is_sent_to_children()); |
| 3500 EXPECT_FALSE(client_->begin_frame_args_sent_to_children().on_critical_path); | 3499 EXPECT_FALSE(client_->begin_frame_args_sent_to_children().on_critical_path); |
| 3501 } | 3500 } |
| 3502 | 3501 |
| 3503 } // namespace | 3502 } // namespace |
| 3504 } // namespace cc | 3503 } // namespace cc |
| OLD | NEW |