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/animation/animation_events.h" |
8 #include "cc/test/threaded_channel_for_test.h" | 8 #include "cc/test/threaded_channel_for_test.h" |
9 #include "cc/trees/remote_channel_main.h" | 9 #include "cc/trees/remote_channel_main.h" |
10 | 10 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 const RendererCapabilities& capabilities) { | 92 const RendererCapabilities& capabilities) { |
93 test_hooks_->ReceivedDidInitializeOutputSurface(success, capabilities); | 93 test_hooks_->ReceivedDidInitializeOutputSurface(success, capabilities); |
94 ProxyMain::DidInitializeOutputSurface(success, capabilities); | 94 ProxyMain::DidInitializeOutputSurface(success, capabilities); |
95 } | 95 } |
96 | 96 |
97 void ProxyMainForTest::DidCompletePageScaleAnimation() { | 97 void ProxyMainForTest::DidCompletePageScaleAnimation() { |
98 test_hooks_->ReceivedDidCompletePageScaleAnimation(); | 98 test_hooks_->ReceivedDidCompletePageScaleAnimation(); |
99 ProxyMain::DidCompletePageScaleAnimation(); | 99 ProxyMain::DidCompletePageScaleAnimation(); |
100 } | 100 } |
101 | 101 |
102 void ProxyMainForTest::PostFrameTimingEventsOnMain( | |
103 std::unique_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, | |
104 std::unique_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) { | |
105 test_hooks_->ReceivedPostFrameTimingEventsOnMain(); | |
106 ProxyMain::PostFrameTimingEventsOnMain(std::move(composite_events), | |
107 std::move(main_frame_events)); | |
108 } | |
109 | |
110 void ProxyMainForTest::BeginMainFrame( | 102 void ProxyMainForTest::BeginMainFrame( |
111 std::unique_ptr<BeginMainFrameAndCommitState> begin_main_frame_state) { | 103 std::unique_ptr<BeginMainFrameAndCommitState> begin_main_frame_state) { |
112 test_hooks_->ReceivedBeginMainFrame(); | 104 test_hooks_->ReceivedBeginMainFrame(); |
113 ProxyMain::BeginMainFrame(std::move(begin_main_frame_state)); | 105 ProxyMain::BeginMainFrame(std::move(begin_main_frame_state)); |
114 } | 106 } |
115 | 107 |
116 } // namespace cc | 108 } // namespace cc |
OLD | NEW |