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/test/layer_tree_test.h" | 5 #include "cc/test/layer_tree_test.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
10 #include "base/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 } | 364 } |
365 | 365 |
366 void RequestNewOutputSurface() override { | 366 void RequestNewOutputSurface() override { |
367 test_hooks_->RequestNewOutputSurface(); | 367 test_hooks_->RequestNewOutputSurface(); |
368 } | 368 } |
369 | 369 |
370 void DidInitializeOutputSurface() override { | 370 void DidInitializeOutputSurface() override { |
371 test_hooks_->DidInitializeOutputSurface(); | 371 test_hooks_->DidInitializeOutputSurface(); |
372 } | 372 } |
373 | 373 |
374 void SendBeginFramesToChildren(const BeginFrameArgs& args) override { | |
375 test_hooks_->SendBeginFramesToChildren(args); | |
376 } | |
377 | |
378 void DidFailToInitializeOutputSurface() override { | 374 void DidFailToInitializeOutputSurface() override { |
379 test_hooks_->DidFailToInitializeOutputSurface(); | 375 test_hooks_->DidFailToInitializeOutputSurface(); |
380 RequestNewOutputSurface(); | 376 RequestNewOutputSurface(); |
381 } | 377 } |
382 | 378 |
383 void WillCommit() override { test_hooks_->WillCommit(); } | 379 void WillCommit() override { test_hooks_->WillCommit(); } |
384 | 380 |
385 void DidCommit() override { test_hooks_->DidCommit(); } | 381 void DidCommit() override { test_hooks_->DidCommit(); } |
386 | 382 |
387 void DidCommitAndDrawFrame() override { | 383 void DidCommitAndDrawFrame() override { |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1036 | 1032 |
1037 RemoteChannelImplForTest* LayerTreeTest::GetRemoteChannelImplForTest() const { | 1033 RemoteChannelImplForTest* LayerTreeTest::GetRemoteChannelImplForTest() const { |
1038 DCHECK(IsRemoteTest()); | 1034 DCHECK(IsRemoteTest()); |
1039 DCHECK(remote_client_layer_tree_host_); | 1035 DCHECK(remote_client_layer_tree_host_); |
1040 | 1036 |
1041 return static_cast<RemoteChannelImplForTest*>( | 1037 return static_cast<RemoteChannelImplForTest*>( |
1042 remote_client_layer_tree_host_->proxy()); | 1038 remote_client_layer_tree_host_->proxy()); |
1043 } | 1039 } |
1044 | 1040 |
1045 } // namespace cc | 1041 } // namespace cc |
OLD | NEW |