Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(590)

Side by Side Diff: cc/trees/layer_tree_host_unittest.cc

Issue 913393004: Revert of cc: Make PaintedScrollbarLayer not use ContentsScalingLayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/test/layer_test_common.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « cc/test/layer_test_common.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698