| 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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 | 366 |
| 367 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, | 367 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
| 368 const gfx::Vector2dF& outer_delta, | 368 const gfx::Vector2dF& outer_delta, |
| 369 const gfx::Vector2dF& elastic_overscroll_delta, | 369 const gfx::Vector2dF& elastic_overscroll_delta, |
| 370 float page_scale, | 370 float page_scale, |
| 371 float top_controls_delta) override { | 371 float top_controls_delta) override { |
| 372 test_hooks_->ApplyViewportDeltas(inner_delta, outer_delta, | 372 test_hooks_->ApplyViewportDeltas(inner_delta, outer_delta, |
| 373 elastic_overscroll_delta, page_scale, | 373 elastic_overscroll_delta, page_scale, |
| 374 top_controls_delta); | 374 top_controls_delta); |
| 375 } | 375 } |
| 376 void ApplyMutations(const LayerTreeMutationMap& mutations) override {} |
| 376 | 377 |
| 377 void RequestNewOutputSurface() override { | 378 void RequestNewOutputSurface() override { |
| 378 test_hooks_->RequestNewOutputSurface(); | 379 test_hooks_->RequestNewOutputSurface(); |
| 379 } | 380 } |
| 380 | 381 |
| 381 void DidInitializeOutputSurface() override { | 382 void DidInitializeOutputSurface() override { |
| 382 test_hooks_->DidInitializeOutputSurface(); | 383 test_hooks_->DidInitializeOutputSurface(); |
| 383 } | 384 } |
| 384 | 385 |
| 385 void SendBeginFramesToChildren(const BeginFrameArgs& args) override { | 386 void SendBeginFramesToChildren(const BeginFrameArgs& args) override { |
| (...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 921 static_cast<ThreadedChannel*>(GetProxyMainForTest()->channel_main()); | 922 static_cast<ThreadedChannel*>(GetProxyMainForTest()->channel_main()); |
| 922 ProxyImpl* proxy_impl = threaded_channel->GetProxyImplForTesting(); | 923 ProxyImpl* proxy_impl = threaded_channel->GetProxyImplForTesting(); |
| 923 | 924 |
| 924 // We check for null ProxyImpl since ProxyImpl exists in the ThreadedChannel | 925 // We check for null ProxyImpl since ProxyImpl exists in the ThreadedChannel |
| 925 // only after it is initialized. | 926 // only after it is initialized. |
| 926 DCHECK(proxy_impl); | 927 DCHECK(proxy_impl); |
| 927 return static_cast<ProxyImplForTest*>(proxy_impl); | 928 return static_cast<ProxyImplForTest*>(proxy_impl); |
| 928 } | 929 } |
| 929 | 930 |
| 930 } // namespace cc | 931 } // namespace cc |
| OLD | NEW |