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/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.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 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1037 | 1033 |
1038 RemoteChannelImplForTest* LayerTreeTest::GetRemoteChannelImplForTest() const { | 1034 RemoteChannelImplForTest* LayerTreeTest::GetRemoteChannelImplForTest() const { |
1039 DCHECK(IsRemoteTest()); | 1035 DCHECK(IsRemoteTest()); |
1040 DCHECK(remote_client_layer_tree_host_); | 1036 DCHECK(remote_client_layer_tree_host_); |
1041 | 1037 |
1042 return static_cast<RemoteChannelImplForTest*>( | 1038 return static_cast<RemoteChannelImplForTest*>( |
1043 remote_client_layer_tree_host_->proxy()); | 1039 remote_client_layer_tree_host_->proxy()); |
1044 } | 1040 } |
1045 | 1041 |
1046 } // namespace cc | 1042 } // namespace cc |
OLD | NEW |