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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
822 return -1; | 826 return -1; |
823 } | 827 } |
824 | 828 |
825 void LayerTreeTest::DestroyLayerTreeHost() { | 829 void LayerTreeTest::DestroyLayerTreeHost() { |
826 if (layer_tree_host_ && layer_tree_host_->root_layer()) | 830 if (layer_tree_host_ && layer_tree_host_->root_layer()) |
827 layer_tree_host_->root_layer()->SetLayerTreeHost(NULL); | 831 layer_tree_host_->root_layer()->SetLayerTreeHost(NULL); |
828 layer_tree_host_ = nullptr; | 832 layer_tree_host_ = nullptr; |
829 } | 833 } |
830 | 834 |
831 } // namespace cc | 835 } // namespace cc |
OLD | NEW |