| 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 bool result = LayerTreeHostImpl::SwapBuffers(frame); | 246 bool result = LayerTreeHostImpl::SwapBuffers(frame); |
| 247 test_hooks_->SwapBuffersOnThread(this, result); | 247 test_hooks_->SwapBuffersOnThread(this, result); |
| 248 return result; | 248 return result; |
| 249 } | 249 } |
| 250 | 250 |
| 251 void DidSwapBuffersComplete() override { | 251 void DidSwapBuffersComplete() override { |
| 252 LayerTreeHostImpl::DidSwapBuffersComplete(); | 252 LayerTreeHostImpl::DidSwapBuffersComplete(); |
| 253 test_hooks_->SwapBuffersCompleteOnThread(this); | 253 test_hooks_->SwapBuffersCompleteOnThread(this); |
| 254 } | 254 } |
| 255 | 255 |
| 256 void ReclaimResources(const CompositorFrameAck* ack) override { | 256 void ReclaimResources(const ReturnedResourceArray& resources) override { |
| 257 LayerTreeHostImpl::ReclaimResources(ack); | 257 LayerTreeHostImpl::ReclaimResources(resources); |
| 258 } | 258 } |
| 259 | 259 |
| 260 void NotifyReadyToActivate() override { | 260 void NotifyReadyToActivate() override { |
| 261 if (block_notify_ready_to_activate_for_testing_) { | 261 if (block_notify_ready_to_activate_for_testing_) { |
| 262 notify_ready_to_activate_was_blocked_ = true; | 262 notify_ready_to_activate_was_blocked_ = true; |
| 263 } else { | 263 } else { |
| 264 LayerTreeHostImpl::NotifyReadyToActivate(); | 264 LayerTreeHostImpl::NotifyReadyToActivate(); |
| 265 test_hooks_->NotifyReadyToActivateOnThread(this); | 265 test_hooks_->NotifyReadyToActivateOnThread(this); |
| 266 } | 266 } |
| 267 } | 267 } |
| (...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1045 | 1045 |
| 1046 RemoteChannelImplForTest* LayerTreeTest::GetRemoteChannelImplForTest() const { | 1046 RemoteChannelImplForTest* LayerTreeTest::GetRemoteChannelImplForTest() const { |
| 1047 DCHECK(IsRemoteTest()); | 1047 DCHECK(IsRemoteTest()); |
| 1048 DCHECK(remote_client_layer_tree_host_); | 1048 DCHECK(remote_client_layer_tree_host_); |
| 1049 | 1049 |
| 1050 return static_cast<RemoteChannelImplForTest*>( | 1050 return static_cast<RemoteChannelImplForTest*>( |
| 1051 remote_client_layer_tree_host_->proxy()); | 1051 remote_client_layer_tree_host_->proxy()); |
| 1052 } | 1052 } |
| 1053 | 1053 |
| 1054 } // namespace cc | 1054 } // namespace cc |
| OLD | NEW |