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/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 | 386 |
387 void DidCompleteSwapBuffers() override { | 387 void DidCompleteSwapBuffers() override { |
388 test_hooks_->DidCompleteSwapBuffers(); | 388 test_hooks_->DidCompleteSwapBuffers(); |
389 } | 389 } |
390 | 390 |
391 void DidPostSwapBuffers() override {} | 391 void DidPostSwapBuffers() override {} |
392 void DidAbortSwapBuffers() override {} | 392 void DidAbortSwapBuffers() override {} |
393 void RequestScheduleComposite() override { test_hooks_->ScheduleComposite(); } | 393 void RequestScheduleComposite() override { test_hooks_->ScheduleComposite(); } |
394 void DidCompletePageScaleAnimation() override {} | 394 void DidCompletePageScaleAnimation() override {} |
395 void BeginMainFrameNotExpectedSoon() override {} | 395 void BeginMainFrameNotExpectedSoon() override {} |
| 396 void ReportFixedRasterScaleUseCounters( |
| 397 bool has_blurry_content, |
| 398 bool has_potential_performance_regression) override {} |
396 | 399 |
397 private: | 400 private: |
398 explicit LayerTreeHostClientForTesting(TestHooks* test_hooks) | 401 explicit LayerTreeHostClientForTesting(TestHooks* test_hooks) |
399 : test_hooks_(test_hooks) {} | 402 : test_hooks_(test_hooks) {} |
400 | 403 |
401 TestHooks* test_hooks_; | 404 TestHooks* test_hooks_; |
402 }; | 405 }; |
403 | 406 |
404 // Adapts LayerTreeHost for test. Injects LayerTreeHostImplForTesting. | 407 // Adapts LayerTreeHost for test. Injects LayerTreeHostImplForTesting. |
405 class LayerTreeHostForTesting : public LayerTreeHost { | 408 class LayerTreeHostForTesting : public LayerTreeHost { |
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1031 | 1034 |
1032 RemoteChannelImplForTest* LayerTreeTest::GetRemoteChannelImplForTest() const { | 1035 RemoteChannelImplForTest* LayerTreeTest::GetRemoteChannelImplForTest() const { |
1033 DCHECK(IsRemoteTest()); | 1036 DCHECK(IsRemoteTest()); |
1034 DCHECK(remote_client_layer_tree_host_); | 1037 DCHECK(remote_client_layer_tree_host_); |
1035 | 1038 |
1036 return static_cast<RemoteChannelImplForTest*>( | 1039 return static_cast<RemoteChannelImplForTest*>( |
1037 remote_client_layer_tree_host_->proxy()); | 1040 remote_client_layer_tree_host_->proxy()); |
1038 } | 1041 } |
1039 | 1042 |
1040 } // namespace cc | 1043 } // namespace cc |
OLD | NEW |