| 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/trees/layer_tree_host.h" | 5 #include "cc/trees/layer_tree_host.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 6712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6723 layer_tree()->SetDeviceScaleFactor(2.f); | 6723 layer_tree()->SetDeviceScaleFactor(2.f); |
| 6724 break; | 6724 break; |
| 6725 } | 6725 } |
| 6726 } | 6726 } |
| 6727 | 6727 |
| 6728 void AfterTest() override {} | 6728 void AfterTest() override {} |
| 6729 | 6729 |
| 6730 FakeContentLayerClient client_; | 6730 FakeContentLayerClient client_; |
| 6731 }; | 6731 }; |
| 6732 | 6732 |
| 6733 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeTestMaskLayerWithDifferentBounds); | 6733 SINGLE_MULTI_AND_REMOTE_TEST_F(LayerTreeTestMaskLayerWithDifferentBounds); |
| 6734 | 6734 |
| 6735 class LayerTreeTestPageScaleFlags : public LayerTreeTest { | 6735 class LayerTreeTestPageScaleFlags : public LayerTreeTest { |
| 6736 protected: | 6736 protected: |
| 6737 void SetupTree() override { | 6737 void SetupTree() override { |
| 6738 // -root | 6738 // -root |
| 6739 // -pre page scale | 6739 // -pre page scale |
| 6740 // -page scale | 6740 // -page scale |
| 6741 // -page scale child1 | 6741 // -page scale child1 |
| 6742 // -page scale grandchild | 6742 // -page scale grandchild |
| 6743 // -page scale child2 | 6743 // -page scale child2 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6794 | 6794 |
| 6795 EndTest(); | 6795 EndTest(); |
| 6796 } | 6796 } |
| 6797 | 6797 |
| 6798 void AfterTest() override {} | 6798 void AfterTest() override {} |
| 6799 | 6799 |
| 6800 std::vector<int> affected_by_page_scale_; | 6800 std::vector<int> affected_by_page_scale_; |
| 6801 std::vector<int> not_affected_by_page_scale_; | 6801 std::vector<int> not_affected_by_page_scale_; |
| 6802 }; | 6802 }; |
| 6803 | 6803 |
| 6804 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeTestPageScaleFlags); | 6804 SINGLE_MULTI_AND_REMOTE_TEST_F(LayerTreeTestPageScaleFlags); |
| 6805 | 6805 |
| 6806 class LayerTreeHostTestDestroyWhileInitializingOutputSurface | 6806 class LayerTreeHostTestDestroyWhileInitializingOutputSurface |
| 6807 : public LayerTreeHostTest { | 6807 : public LayerTreeHostTest { |
| 6808 protected: | 6808 protected: |
| 6809 void BeginTest() override { | 6809 void BeginTest() override { |
| 6810 // By ending the test immediately we start initialization of an output | 6810 // By ending the test immediately we start initialization of an output |
| 6811 // surface but destroy the LTH before it completes. This test verifies | 6811 // surface but destroy the LTH before it completes. This test verifies |
| 6812 // that this works correctly and the output surface is destroyed on | 6812 // that this works correctly and the output surface is destroyed on |
| 6813 // the correct thread. | 6813 // the correct thread. |
| 6814 EndTest(); | 6814 EndTest(); |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7006 EndTest(); | 7006 EndTest(); |
| 7007 } | 7007 } |
| 7008 | 7008 |
| 7009 void AfterTest() override {} | 7009 void AfterTest() override {} |
| 7010 }; | 7010 }; |
| 7011 | 7011 |
| 7012 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestSubmitFrameResources); | 7012 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestSubmitFrameResources); |
| 7013 | 7013 |
| 7014 } // namespace | 7014 } // namespace |
| 7015 } // namespace cc | 7015 } // namespace cc |
| OLD | NEW |