OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/proxy_main_for_test.h" | 5 #include "cc/test/proxy_main_for_test.h" |
6 | 6 |
| 7 #include "cc/animation/animation_events.h" |
7 #include "cc/test/threaded_channel_for_test.h" | 8 #include "cc/test/threaded_channel_for_test.h" |
8 | 9 |
9 namespace cc { | 10 namespace cc { |
10 | 11 |
11 scoped_ptr<ProxyMain> ProxyMainForTest::CreateThreaded( | 12 scoped_ptr<ProxyMain> ProxyMainForTest::CreateThreaded( |
12 TestHooks* test_hooks, | 13 TestHooks* test_hooks, |
13 LayerTreeHost* host, | 14 LayerTreeHost* host, |
14 TaskRunnerProvider* task_runner_provider) { | 15 TaskRunnerProvider* task_runner_provider) { |
15 scoped_ptr<ProxyMain> proxy_main( | 16 scoped_ptr<ProxyMain> proxy_main( |
16 new ProxyMainForTest(test_hooks, host, task_runner_provider)); | 17 new ProxyMainForTest(test_hooks, host, task_runner_provider)); |
(...skipping 28 matching lines...) Expand all Loading... |
45 void ProxyMainForTest::BeginMainFrameNotExpectedSoon() { | 46 void ProxyMainForTest::BeginMainFrameNotExpectedSoon() { |
46 test_hooks_->ReceivedBeginMainFrameNotExpectedSoon(); | 47 test_hooks_->ReceivedBeginMainFrameNotExpectedSoon(); |
47 ProxyMain::BeginMainFrameNotExpectedSoon(); | 48 ProxyMain::BeginMainFrameNotExpectedSoon(); |
48 } | 49 } |
49 | 50 |
50 void ProxyMainForTest::DidCommitAndDrawFrame() { | 51 void ProxyMainForTest::DidCommitAndDrawFrame() { |
51 test_hooks_->ReceivedDidCommitAndDrawFrame(); | 52 test_hooks_->ReceivedDidCommitAndDrawFrame(); |
52 ProxyMain::DidCommitAndDrawFrame(); | 53 ProxyMain::DidCommitAndDrawFrame(); |
53 } | 54 } |
54 | 55 |
55 void ProxyMainForTest::SetAnimationEvents( | 56 void ProxyMainForTest::SetAnimationEvents(scoped_ptr<AnimationEvents> events) { |
56 scoped_ptr<AnimationEventsVector> events) { | |
57 test_hooks_->ReceivedSetAnimationEvents(); | 57 test_hooks_->ReceivedSetAnimationEvents(); |
58 ProxyMain::SetAnimationEvents(std::move(events)); | 58 ProxyMain::SetAnimationEvents(std::move(events)); |
59 } | 59 } |
60 | 60 |
61 void ProxyMainForTest::DidLoseOutputSurface() { | 61 void ProxyMainForTest::DidLoseOutputSurface() { |
62 test_hooks_->ReceivedDidLoseOutputSurface(); | 62 test_hooks_->ReceivedDidLoseOutputSurface(); |
63 ProxyMain::DidLoseOutputSurface(); | 63 ProxyMain::DidLoseOutputSurface(); |
64 } | 64 } |
65 | 65 |
66 void ProxyMainForTest::RequestNewOutputSurface() { | 66 void ProxyMainForTest::RequestNewOutputSurface() { |
(...skipping 21 matching lines...) Expand all Loading... |
88 std::move(main_frame_events)); | 88 std::move(main_frame_events)); |
89 } | 89 } |
90 | 90 |
91 void ProxyMainForTest::BeginMainFrame( | 91 void ProxyMainForTest::BeginMainFrame( |
92 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state) { | 92 scoped_ptr<BeginMainFrameAndCommitState> begin_main_frame_state) { |
93 test_hooks_->ReceivedBeginMainFrame(); | 93 test_hooks_->ReceivedBeginMainFrame(); |
94 ProxyMain::BeginMainFrame(std::move(begin_main_frame_state)); | 94 ProxyMain::BeginMainFrame(std::move(begin_main_frame_state)); |
95 } | 95 } |
96 | 96 |
97 } // namespace cc | 97 } // namespace cc |
OLD | NEW |