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 <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 layer_tree_host()->SetDeviceScaleFactor(4.f); | 573 layer_tree_host()->SetDeviceScaleFactor(4.f); |
574 break; | 574 break; |
575 default: | 575 default: |
576 // No extra commits. | 576 // No extra commits. |
577 EXPECT_EQ(2, layer_tree_host()->source_frame_number()); | 577 EXPECT_EQ(2, layer_tree_host()->source_frame_number()); |
578 } | 578 } |
579 } | 579 } |
580 | 580 |
581 void AfterTest() override { | 581 void AfterTest() override { |
582 EXPECT_EQ(gfx::Size(40, 40).ToString(), | 582 EXPECT_EQ(gfx::Size(40, 40).ToString(), |
583 scrollbar_->internal_content_bounds().ToString()); | 583 scrollbar_->content_bounds().ToString()); |
584 } | 584 } |
585 | 585 |
586 private: | 586 private: |
587 FakeContentLayerClient client_; | 587 FakeContentLayerClient client_; |
588 scoped_refptr<Layer> root_layer_; | 588 scoped_refptr<Layer> root_layer_; |
589 scoped_refptr<FakePaintedScrollbarLayer> scrollbar_; | 589 scoped_refptr<FakePaintedScrollbarLayer> scrollbar_; |
590 }; | 590 }; |
591 | 591 |
592 SINGLE_AND_MULTI_THREAD_TEST_F( | 592 SINGLE_AND_MULTI_THREAD_TEST_F( |
593 LayerTreeHostTestNoExtraCommitFromScrollbarInvalidate); | 593 LayerTreeHostTestNoExtraCommitFromScrollbarInvalidate); |
(...skipping 5665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6259 | 6259 |
6260 void AfterTest() override { EXPECT_TRUE(did_commit_); } | 6260 void AfterTest() override { EXPECT_TRUE(did_commit_); } |
6261 | 6261 |
6262 private: | 6262 private: |
6263 bool did_commit_; | 6263 bool did_commit_; |
6264 }; | 6264 }; |
6265 | 6265 |
6266 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestNoTasksBetweenWillAndDidCommit); | 6266 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostTestNoTasksBetweenWillAndDidCommit); |
6267 | 6267 |
6268 } // namespace cc | 6268 } // namespace cc |
OLD | NEW |