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 #ifndef CC_TEST_PROXY_IMPL_FOR_TEST_H_ | 5 #ifndef CC_TEST_PROXY_IMPL_FOR_TEST_H_ |
6 #define CC_TEST_PROXY_IMPL_FOR_TEST_H_ | 6 #define CC_TEST_PROXY_IMPL_FOR_TEST_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "cc/test/test_hooks.h" | 9 #include "cc/test/test_hooks.h" |
10 #include "cc/trees/proxy_impl.h" | 10 #include "cc/trees/proxy_impl.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 using ProxyImpl::PostAnimationEventsToMainThreadOnImplThread; | 24 using ProxyImpl::PostAnimationEventsToMainThreadOnImplThread; |
25 using ProxyImpl::DidLoseOutputSurfaceOnImplThread; | 25 using ProxyImpl::DidLoseOutputSurfaceOnImplThread; |
26 using ProxyImpl::DidCompletePageScaleAnimationOnImplThread; | 26 using ProxyImpl::DidCompletePageScaleAnimationOnImplThread; |
27 using ProxyImpl::SendBeginMainFrameNotExpectedSoon; | 27 using ProxyImpl::SendBeginMainFrameNotExpectedSoon; |
28 | 28 |
29 bool HasCommitCompletionEvent() const; | 29 bool HasCommitCompletionEvent() const; |
30 bool GetNextCommitWaitsForActivation() const; | 30 bool GetNextCommitWaitsForActivation() const; |
31 const DelayedUniqueNotifier& smoothness_priority_expiration_notifier() const { | 31 const DelayedUniqueNotifier& smoothness_priority_expiration_notifier() const { |
32 return smoothness_priority_expiration_notifier_; | 32 return smoothness_priority_expiration_notifier_; |
33 } | 33 } |
34 const BeginFrameArgs& last_begin_frame_args() const { | |
35 return last_begin_main_frame_args_; | |
36 } | |
37 | 34 |
38 ProxyImplForTest( | 35 ProxyImplForTest( |
39 TestHooks* test_hooks, | 36 TestHooks* test_hooks, |
40 ChannelImpl* channel_impl, | 37 ChannelImpl* channel_impl, |
41 LayerTreeHost* layer_tree_host, | 38 LayerTreeHost* layer_tree_host, |
42 TaskRunnerProvider* task_runner_provider, | 39 TaskRunnerProvider* task_runner_provider, |
43 std::unique_ptr<BeginFrameSource> external_begin_frame_source); | 40 std::unique_ptr<BeginFrameSource> external_begin_frame_source); |
44 | 41 |
45 void ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) override; | 42 void ScheduledActionSendBeginMainFrame(const BeginFrameArgs& args) override; |
46 DrawResult ScheduledActionDrawAndSwapIfPossible() override; | 43 DrawResult ScheduledActionDrawAndSwapIfPossible() override; |
(...skipping 23 matching lines...) Expand all Loading... |
70 LayerTreeHost* layer_tree_host, | 67 LayerTreeHost* layer_tree_host, |
71 base::TimeTicks main_thread_start_time, | 68 base::TimeTicks main_thread_start_time, |
72 bool hold_commit_for_activation) override; | 69 bool hold_commit_for_activation) override; |
73 | 70 |
74 TestHooks* test_hooks_; | 71 TestHooks* test_hooks_; |
75 }; | 72 }; |
76 | 73 |
77 } // namespace cc | 74 } // namespace cc |
78 | 75 |
79 #endif // CC_TEST_PROXY_IMPL_FOR_TEST_H_ | 76 #endif // CC_TEST_PROXY_IMPL_FOR_TEST_H_ |
OLD | NEW |