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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 void DidCommit() override { test_hooks_->DidCommit(); } | 317 void DidCommit() override { test_hooks_->DidCommit(); } |
318 | 318 |
319 void DidCommitAndDrawFrame() override { | 319 void DidCommitAndDrawFrame() override { |
320 test_hooks_->DidCommitAndDrawFrame(); | 320 test_hooks_->DidCommitAndDrawFrame(); |
321 } | 321 } |
322 | 322 |
323 void DidReceiveCompositorFrameAck() override { | 323 void DidReceiveCompositorFrameAck() override { |
324 test_hooks_->DidReceiveCompositorFrameAck(); | 324 test_hooks_->DidReceiveCompositorFrameAck(); |
325 } | 325 } |
326 | 326 |
327 void DidPostSwapBuffers() override {} | 327 void DidSubmitCompositorFrame() override {} |
328 void DidAbortSwapBuffers() override {} | 328 void DidLoseCompositorFrameSink() override {} |
329 void RequestScheduleComposite() override { test_hooks_->ScheduleComposite(); } | 329 void RequestScheduleComposite() override { test_hooks_->ScheduleComposite(); } |
330 void DidCompletePageScaleAnimation() override {} | 330 void DidCompletePageScaleAnimation() override {} |
331 void BeginMainFrameNotExpectedSoon() override { | 331 void BeginMainFrameNotExpectedSoon() override { |
332 test_hooks_->BeginMainFrameNotExpectedSoon(); | 332 test_hooks_->BeginMainFrameNotExpectedSoon(); |
333 } | 333 } |
334 | 334 |
335 private: | 335 private: |
336 explicit LayerTreeHostClientForTesting(TestHooks* test_hooks) | 336 explicit LayerTreeHostClientForTesting(TestHooks* test_hooks) |
337 : test_hooks_(test_hooks) {} | 337 : test_hooks_(test_hooks) {} |
338 | 338 |
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
929 DCHECK(!IsRemoteTest()); | 929 DCHECK(!IsRemoteTest()); |
930 return layer_tree_host_in_process_; | 930 return layer_tree_host_in_process_; |
931 } | 931 } |
932 | 932 |
933 Proxy* LayerTreeTest::proxy() { | 933 Proxy* LayerTreeTest::proxy() { |
934 return layer_tree_host_in_process() ? layer_tree_host_in_process()->proxy() | 934 return layer_tree_host_in_process() ? layer_tree_host_in_process()->proxy() |
935 : NULL; | 935 : NULL; |
936 } | 936 } |
937 | 937 |
938 } // namespace cc | 938 } // namespace cc |
OLD | NEW |