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