| 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_impl_for_test.h" | 5 #include "cc/test/proxy_impl_for_test.h" |
| 6 | 6 |
| 7 namespace cc { | 7 namespace cc { |
| 8 scoped_ptr<ProxyImplForTest> ProxyImplForTest::Create( | 8 scoped_ptr<ProxyImplForTest> ProxyImplForTest::Create( |
| 9 TestHooks* test_hooks, | 9 TestHooks* test_hooks, |
| 10 ChannelImpl* channel_impl, | 10 ChannelImpl* channel_impl, |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 void ProxyImplForTest::SendBeginMainFrameNotExpectedSoon() { | 72 void ProxyImplForTest::SendBeginMainFrameNotExpectedSoon() { |
| 73 ProxyImpl::SendBeginMainFrameNotExpectedSoon(); | 73 ProxyImpl::SendBeginMainFrameNotExpectedSoon(); |
| 74 test_hooks_->SendBeginMainFrameNotExpectedSoon(); | 74 test_hooks_->SendBeginMainFrameNotExpectedSoon(); |
| 75 } | 75 } |
| 76 | 76 |
| 77 void ProxyImplForTest::DidActivateSyncTree() { | 77 void ProxyImplForTest::DidActivateSyncTree() { |
| 78 ProxyImpl::DidActivateSyncTree(); | 78 ProxyImpl::DidActivateSyncTree(); |
| 79 test_hooks_->DidActivateSyncTree(); | 79 test_hooks_->DidActivateSyncTree(); |
| 80 } | 80 } |
| 81 | 81 |
| 82 void ProxyImplForTest::SetThrottleFrameProductionOnImpl(bool throttle) { | |
| 83 test_hooks_->SetThrottleFrameProductionOnImpl(throttle); | |
| 84 ProxyImpl::SetThrottleFrameProductionOnImpl(throttle); | |
| 85 } | |
| 86 | |
| 87 void ProxyImplForTest::InitializeOutputSurfaceOnImpl( | 82 void ProxyImplForTest::InitializeOutputSurfaceOnImpl( |
| 88 OutputSurface* output_surface) { | 83 OutputSurface* output_surface) { |
| 89 test_hooks_->InitializeOutputSurfaceOnImpl(output_surface); | 84 test_hooks_->InitializeOutputSurfaceOnImpl(output_surface); |
| 90 ProxyImpl::InitializeOutputSurfaceOnImpl(output_surface); | 85 ProxyImpl::InitializeOutputSurfaceOnImpl(output_surface); |
| 91 } | 86 } |
| 92 | 87 |
| 93 void ProxyImplForTest::MainThreadHasStoppedFlingingOnImpl() { | 88 void ProxyImplForTest::MainThreadHasStoppedFlingingOnImpl() { |
| 94 test_hooks_->MainThreadHasStoppedFlingingOnImpl(); | 89 test_hooks_->MainThreadHasStoppedFlingingOnImpl(); |
| 95 ProxyImpl::MainThreadHasStoppedFlingingOnImpl(); | 90 ProxyImpl::MainThreadHasStoppedFlingingOnImpl(); |
| 96 } | 91 } |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 LayerTreeHost* layer_tree_host, | 149 LayerTreeHost* layer_tree_host, |
| 155 base::TimeTicks main_thread_start_time, | 150 base::TimeTicks main_thread_start_time, |
| 156 bool hold_commit_for_activation) { | 151 bool hold_commit_for_activation) { |
| 157 test_hooks_->StartCommitOnImpl(); | 152 test_hooks_->StartCommitOnImpl(); |
| 158 ProxyImpl::StartCommitOnImpl(completion, layer_tree_host, | 153 ProxyImpl::StartCommitOnImpl(completion, layer_tree_host, |
| 159 main_thread_start_time, | 154 main_thread_start_time, |
| 160 hold_commit_for_activation); | 155 hold_commit_for_activation); |
| 161 } | 156 } |
| 162 | 157 |
| 163 } // namespace cc | 158 } // namespace cc |
| OLD | NEW |