| Index: cc/scheduler/scheduler_unittest.cc
|
| diff --git a/cc/scheduler/scheduler_unittest.cc b/cc/scheduler/scheduler_unittest.cc
|
| index 7d61df36d3cc8692c7f9af50a27963a2e0e252ef..30f62aed76eb51ba6ea93fca9f68c4283861d6b8 100644
|
| --- a/cc/scheduler/scheduler_unittest.cc
|
| +++ b/cc/scheduler/scheduler_unittest.cc
|
| @@ -171,7 +171,7 @@ class FakeSchedulerClient : public SchedulerClient {
|
| // last one otherwise we violate the BeginFrameSource contract.
|
| now_src_->AdvanceNowMicroseconds(1);
|
| fake_external_begin_frame_source_->TestOnBeginFrame(
|
| - CreateBeginFrameArgsForTesting(now_src_));
|
| + CreateBeginFrameArgsForTesting(BEGINFRAME_FROM_HERE, now_src_));
|
| EXPECT_TRUE(scheduler_->BeginImplFrameDeadlinePending());
|
| }
|
|
|
| @@ -1126,7 +1126,8 @@ TEST(SchedulerTest, PollForCommitCompletion) {
|
| scheduler->NotifyReadyToCommit();
|
| scheduler->SetNeedsRedraw();
|
|
|
| - BeginFrameArgs frame_args = CreateBeginFrameArgsForTesting(client.now_src());
|
| + BeginFrameArgs frame_args =
|
| + CreateBeginFrameArgsForTesting(BEGINFRAME_FROM_HERE, client.now_src());
|
| frame_args.interval = base::TimeDelta::FromMilliseconds(1000);
|
| client.fake_external_begin_frame_source()->TestOnBeginFrame(frame_args);
|
|
|
| @@ -1199,7 +1200,8 @@ TEST(SchedulerTest, BeginRetroFrame) {
|
|
|
| // Create a BeginFrame with a long deadline to avoid race conditions.
|
| // This is the first BeginFrame, which will be handled immediately.
|
| - BeginFrameArgs args = CreateBeginFrameArgsForTesting(client.now_src());
|
| + BeginFrameArgs args =
|
| + CreateBeginFrameArgsForTesting(BEGINFRAME_FROM_HERE, client.now_src());
|
| args.deadline += base::TimeDelta::FromHours(1);
|
| client.fake_external_begin_frame_source()->TestOnBeginFrame(args);
|
| EXPECT_ACTION("WillBeginImplFrame", client, 0, 2);
|
| @@ -1277,7 +1279,8 @@ TEST(SchedulerTest, BeginRetroFrame_SwapThrottled) {
|
|
|
| // Create a BeginFrame with a long deadline to avoid race conditions.
|
| // This is the first BeginFrame, which will be handled immediately.
|
| - BeginFrameArgs args = CreateBeginFrameArgsForTesting(client.now_src());
|
| + BeginFrameArgs args =
|
| + CreateBeginFrameArgsForTesting(BEGINFRAME_FROM_HERE, client.now_src());
|
| args.deadline += base::TimeDelta::FromHours(1);
|
| client.fake_external_begin_frame_source()->TestOnBeginFrame(args);
|
| EXPECT_ACTION("WillBeginImplFrame", client, 0, 2);
|
| @@ -1752,7 +1755,8 @@ TEST(SchedulerTest, DidLoseOutputSurfaceAfterBeginRetroFramePosted) {
|
| // Create a BeginFrame with a long deadline to avoid race conditions.
|
| // This is the first BeginFrame, which will be handled immediately.
|
| client.Reset();
|
| - BeginFrameArgs args = CreateBeginFrameArgsForTesting(client.now_src());
|
| + BeginFrameArgs args =
|
| + CreateBeginFrameArgsForTesting(BEGINFRAME_FROM_HERE, client.now_src());
|
| args.deadline += base::TimeDelta::FromHours(1);
|
| client.fake_external_begin_frame_source()->TestOnBeginFrame(args);
|
| EXPECT_ACTION("WillBeginImplFrame", client, 0, 2);
|
| @@ -1811,7 +1815,8 @@ TEST(SchedulerTest, DidLoseOutputSurfaceDuringBeginRetroFrameRunning) {
|
| // Create a BeginFrame with a long deadline to avoid race conditions.
|
| // This is the first BeginFrame, which will be handled immediately.
|
| client.Reset();
|
| - BeginFrameArgs args = CreateBeginFrameArgsForTesting(client.now_src());
|
| + BeginFrameArgs args =
|
| + CreateBeginFrameArgsForTesting(BEGINFRAME_FROM_HERE, client.now_src());
|
| args.deadline += base::TimeDelta::FromHours(1);
|
| client.fake_external_begin_frame_source()->TestOnBeginFrame(args);
|
| EXPECT_ACTION("WillBeginImplFrame", client, 0, 2);
|
|
|