| 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/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 test_hooks_->DidReceiveCompositorFrameAck(); | 357 test_hooks_->DidReceiveCompositorFrameAck(); |
| 358 } | 358 } |
| 359 | 359 |
| 360 void DidSubmitCompositorFrame() override {} | 360 void DidSubmitCompositorFrame() override {} |
| 361 void DidLoseCompositorFrameSink() override {} | 361 void DidLoseCompositorFrameSink() override {} |
| 362 void RequestScheduleComposite() override { test_hooks_->ScheduleComposite(); } | 362 void RequestScheduleComposite() override { test_hooks_->ScheduleComposite(); } |
| 363 void DidCompletePageScaleAnimation() override {} | 363 void DidCompletePageScaleAnimation() override {} |
| 364 void BeginMainFrameNotExpectedSoon() override { | 364 void BeginMainFrameNotExpectedSoon() override { |
| 365 test_hooks_->BeginMainFrameNotExpectedSoon(); | 365 test_hooks_->BeginMainFrameNotExpectedSoon(); |
| 366 } | 366 } |
| 367 void BeginMainFrameNotExpectedUntil(base::TimeTicks time) override {} |
| 367 | 368 |
| 368 bool IsForSubframe() override { return false; } | 369 bool IsForSubframe() override { return false; } |
| 369 | 370 |
| 370 private: | 371 private: |
| 371 explicit LayerTreeHostClientForTesting(TestHooks* test_hooks) | 372 explicit LayerTreeHostClientForTesting(TestHooks* test_hooks) |
| 372 : test_hooks_(test_hooks) {} | 373 : test_hooks_(test_hooks) {} |
| 373 | 374 |
| 374 TestHooks* test_hooks_; | 375 TestHooks* test_hooks_; |
| 375 }; | 376 }; |
| 376 | 377 |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 897 DCHECK(task_runner_provider()->IsMainThread() || | 898 DCHECK(task_runner_provider()->IsMainThread() || |
| 898 task_runner_provider()->IsMainThreadBlocked()); | 899 task_runner_provider()->IsMainThreadBlocked()); |
| 899 return layer_tree_host_.get(); | 900 return layer_tree_host_.get(); |
| 900 } | 901 } |
| 901 | 902 |
| 902 Proxy* LayerTreeTest::proxy() { | 903 Proxy* LayerTreeTest::proxy() { |
| 903 return layer_tree_host() ? layer_tree_host()->proxy() : NULL; | 904 return layer_tree_host() ? layer_tree_host()->proxy() : NULL; |
| 904 } | 905 } |
| 905 | 906 |
| 906 } // namespace cc | 907 } // namespace cc |
| OLD | NEW |