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 "cc/animation/animation.h" | 8 #include "cc/animation/animation.h" |
9 #include "cc/animation/animation_registrar.h" | 9 #include "cc/animation/animation_registrar.h" |
10 #include "cc/animation/layer_animation_controller.h" | 10 #include "cc/animation/layer_animation_controller.h" |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 } | 373 } |
374 | 374 |
375 void RequestNewOutputSurface(bool fallback) override { | 375 void RequestNewOutputSurface(bool fallback) override { |
376 test_hooks_->RequestNewOutputSurface(fallback); | 376 test_hooks_->RequestNewOutputSurface(fallback); |
377 } | 377 } |
378 | 378 |
379 void DidInitializeOutputSurface() override { | 379 void DidInitializeOutputSurface() override { |
380 test_hooks_->DidInitializeOutputSurface(); | 380 test_hooks_->DidInitializeOutputSurface(); |
381 } | 381 } |
382 | 382 |
| 383 void SendBeginFramesToChildren(const BeginFrameArgs& args) override { |
| 384 test_hooks_->SendBeginFramesToChildren(args); |
| 385 } |
| 386 |
383 void DidFailToInitializeOutputSurface() override { | 387 void DidFailToInitializeOutputSurface() override { |
384 test_hooks_->DidFailToInitializeOutputSurface(); | 388 test_hooks_->DidFailToInitializeOutputSurface(); |
385 } | 389 } |
386 | 390 |
387 void WillCommit() override { test_hooks_->WillCommit(); } | 391 void WillCommit() override { test_hooks_->WillCommit(); } |
388 | 392 |
389 void DidCommit() override { test_hooks_->DidCommit(); } | 393 void DidCommit() override { test_hooks_->DidCommit(); } |
390 | 394 |
391 void DidCommitAndDrawFrame() override { | 395 void DidCommitAndDrawFrame() override { |
392 test_hooks_->DidCommitAndDrawFrame(); | 396 test_hooks_->DidCommitAndDrawFrame(); |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
820 return -1; | 824 return -1; |
821 } | 825 } |
822 | 826 |
823 void LayerTreeTest::DestroyLayerTreeHost() { | 827 void LayerTreeTest::DestroyLayerTreeHost() { |
824 if (layer_tree_host_ && layer_tree_host_->root_layer()) | 828 if (layer_tree_host_ && layer_tree_host_->root_layer()) |
825 layer_tree_host_->root_layer()->SetLayerTreeHost(NULL); | 829 layer_tree_host_->root_layer()->SetLayerTreeHost(NULL); |
826 layer_tree_host_ = nullptr; | 830 layer_tree_host_ = nullptr; |
827 } | 831 } |
828 | 832 |
829 } // namespace cc | 833 } // namespace cc |
OLD | NEW |