| 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 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, | 366 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
| 367 const gfx::Vector2dF& outer_delta, | 367 const gfx::Vector2dF& outer_delta, |
| 368 const gfx::Vector2dF& elastic_overscroll_delta, | 368 const gfx::Vector2dF& elastic_overscroll_delta, |
| 369 float page_scale, | 369 float page_scale, |
| 370 float top_controls_delta) override { | 370 float top_controls_delta) override { |
| 371 test_hooks_->ApplyViewportDeltas(inner_delta, outer_delta, | 371 test_hooks_->ApplyViewportDeltas(inner_delta, outer_delta, |
| 372 elastic_overscroll_delta, page_scale, | 372 elastic_overscroll_delta, page_scale, |
| 373 top_controls_delta); | 373 top_controls_delta); |
| 374 } | 374 } |
| 375 | 375 |
| 376 void ApplyMutations(const LayerTreeMutations& mutations) override {} |
| 377 |
| 376 void RequestNewOutputSurface() override { | 378 void RequestNewOutputSurface() override { |
| 377 test_hooks_->RequestNewOutputSurface(); | 379 test_hooks_->RequestNewOutputSurface(); |
| 378 } | 380 } |
| 379 | 381 |
| 380 void DidInitializeOutputSurface() override { | 382 void DidInitializeOutputSurface() override { |
| 381 test_hooks_->DidInitializeOutputSurface(); | 383 test_hooks_->DidInitializeOutputSurface(); |
| 382 } | 384 } |
| 383 | 385 |
| 384 void SendBeginFramesToChildren(const BeginFrameArgs& args) override { | 386 void SendBeginFramesToChildren(const BeginFrameArgs& args) override { |
| 385 test_hooks_->SendBeginFramesToChildren(args); | 387 test_hooks_->SendBeginFramesToChildren(args); |
| (...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 933 static_cast<ThreadedChannel*>(GetProxyMainForTest()->channel_main()); | 935 static_cast<ThreadedChannel*>(GetProxyMainForTest()->channel_main()); |
| 934 ProxyImpl* proxy_impl = threaded_channel->GetProxyImplForTesting(); | 936 ProxyImpl* proxy_impl = threaded_channel->GetProxyImplForTesting(); |
| 935 | 937 |
| 936 // We check for null ProxyImpl since ProxyImpl exists in the ThreadedChannel | 938 // We check for null ProxyImpl since ProxyImpl exists in the ThreadedChannel |
| 937 // only after it is initialized. | 939 // only after it is initialized. |
| 938 DCHECK(proxy_impl); | 940 DCHECK(proxy_impl); |
| 939 return static_cast<ProxyImplForTest*>(proxy_impl); | 941 return static_cast<ProxyImplForTest*>(proxy_impl); |
| 940 } | 942 } |
| 941 | 943 |
| 942 } // namespace cc | 944 } // namespace cc |
| OLD | NEW |