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

Unified Diff: cc/trees/layer_tree_host_unittest.cc

Issue 17550008: Make IsSolidColor() a property on CC scrollbar layers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use DCHECK(layer_tree_host()) instead. Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: cc/trees/layer_tree_host_unittest.cc
diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_unittest.cc
index ed6dd2c9fc5f250c3bc9b3fe0d5c2c579800c5d0..aac5dab013b58a3d7a07706582eaceb2f14267de 100644
--- a/cc/trees/layer_tree_host_unittest.cc
+++ b/cc/trees/layer_tree_host_unittest.cc
@@ -328,7 +328,8 @@ class LayerTreeHostTestNoExtraCommitFromScrollbarInvalidate
bool has_thumb = false;
scrollbar_ = FakeScrollbarLayer::Create(paint_scrollbar,
has_thumb,
- root_layer_->id());
+ root_layer_->id(),
+ false);
scrollbar_->SetPosition(gfx::Point(0, 10));
scrollbar_->SetBounds(gfx::Size(10, 10));
@@ -1053,8 +1054,8 @@ class LayerTreeHostTestAtomicCommit : public LayerTreeHostTest {
bool paint_scrollbar = true;
bool has_thumb = false;
- scrollbar_ =
- FakeScrollbarLayer::Create(paint_scrollbar, has_thumb, layer_->id());
+ scrollbar_ = FakeScrollbarLayer::Create(
+ paint_scrollbar, has_thumb, layer_->id(), false);
scrollbar_->SetPosition(gfx::Point(0, 10));
scrollbar_->SetBounds(gfx::Size(10, 10));
@@ -1184,14 +1185,14 @@ class LayerTreeHostTestAtomicCommitWithPartialUpdate
bool paint_scrollbar = true;
bool has_thumb = false;
- scrollbar_with_paints_ =
- FakeScrollbarLayer::Create(paint_scrollbar, has_thumb, parent_->id());
+ scrollbar_with_paints_ = FakeScrollbarLayer::Create(
+ paint_scrollbar, has_thumb, parent_->id(), false);
scrollbar_with_paints_->SetPosition(gfx::Point(3, 10));
scrollbar_with_paints_->SetBounds(gfx::Size(3, 10));
paint_scrollbar = false;
- scrollbar_without_paints_ =
- FakeScrollbarLayer::Create(paint_scrollbar, has_thumb, parent_->id());
+ scrollbar_without_paints_ = FakeScrollbarLayer::Create(
+ paint_scrollbar, has_thumb, parent_->id(), false);
scrollbar_without_paints_->SetPosition(gfx::Point(6, 10));
scrollbar_without_paints_->SetBounds(gfx::Size(3, 10));
@@ -2797,7 +2798,7 @@ class LayerTreeHostTestDeferredInitialize : public LayerTreeHostTest {
virtual void InitializeSettings(LayerTreeSettings* settings) OVERRIDE {
// PictureLayer can only be used with impl side painting enabled.
settings->impl_side_painting = true;
- settings->solid_color_scrollbars = true;
+ settings->force_solid_color_scrollbars = true;
}
virtual void SetupTree() OVERRIDE {

Powered by Google App Engine
This is Rietveld 408576698