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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 void WillBeginMainFrame() override { test_hooks_->WillBeginMainFrame(); } | 384 void WillBeginMainFrame() override { test_hooks_->WillBeginMainFrame(); } |
385 | 385 |
386 void DidBeginMainFrame() override { test_hooks_->DidBeginMainFrame(); } | 386 void DidBeginMainFrame() override { test_hooks_->DidBeginMainFrame(); } |
387 | 387 |
388 void BeginMainFrame(const BeginFrameArgs& args) override { | 388 void BeginMainFrame(const BeginFrameArgs& args) override { |
389 test_hooks_->BeginMainFrame(args); | 389 test_hooks_->BeginMainFrame(args); |
390 } | 390 } |
391 | 391 |
392 void Layout() override { test_hooks_->Layout(); } | 392 void Layout() override { test_hooks_->Layout(); } |
393 | 393 |
394 void ApplyViewportDeltas(const gfx::Vector2d& inner_delta, | 394 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
395 const gfx::Vector2d& outer_delta, | 395 const gfx::Vector2dF& outer_delta, |
396 const gfx::Vector2dF& elastic_overscroll_delta, | 396 const gfx::Vector2dF& elastic_overscroll_delta, |
397 float page_scale, | 397 float page_scale, |
398 float top_controls_delta) override { | 398 float top_controls_delta) override { |
399 test_hooks_->ApplyViewportDeltas(inner_delta, outer_delta, | 399 test_hooks_->ApplyViewportDeltas(inner_delta, outer_delta, |
400 elastic_overscroll_delta, page_scale, | 400 elastic_overscroll_delta, page_scale, |
401 top_controls_delta); | 401 top_controls_delta); |
402 } | 402 } |
403 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, | 403 void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, |
404 float scale, | 404 float scale, |
405 float top_controls_delta) override { | 405 float top_controls_delta) override { |
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
872 return -1; | 872 return -1; |
873 } | 873 } |
874 | 874 |
875 void LayerTreeTest::DestroyLayerTreeHost() { | 875 void LayerTreeTest::DestroyLayerTreeHost() { |
876 if (layer_tree_host_ && layer_tree_host_->root_layer()) | 876 if (layer_tree_host_ && layer_tree_host_->root_layer()) |
877 layer_tree_host_->root_layer()->SetLayerTreeHost(NULL); | 877 layer_tree_host_->root_layer()->SetLayerTreeHost(NULL); |
878 layer_tree_host_ = nullptr; | 878 layer_tree_host_ = nullptr; |
879 } | 879 } |
880 | 880 |
881 } // namespace cc | 881 } // namespace cc |
OLD | NEW |