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

Unified Diff: cc/trees/layer_tree_host_unittest_context.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_context.cc
diff --git a/cc/trees/layer_tree_host_unittest_context.cc b/cc/trees/layer_tree_host_unittest_context.cc
index d80373d1cee6364cd5738cca84c0d58c6f688acc..1b0ff4574856d51372060ae3b19a7a59e6e85ac1 100644
--- a/cc/trees/layer_tree_host_unittest_context.cc
+++ b/cc/trees/layer_tree_host_unittest_context.cc
@@ -1175,8 +1175,7 @@ class LayerTreeHostContextTestDontUseLostResources
layer_tree_host()->SetDebugState(debug_state);
scoped_refptr<ScrollbarLayer> scrollbar_ = ScrollbarLayer::Create(
- scoped_ptr<Scrollbar>(new FakeScrollbar).Pass(),
- content_->id());
+ scoped_ptr<Scrollbar>(new FakeScrollbar).Pass(), content_->id(), false);
scrollbar_->SetBounds(gfx::Size(10, 10));
scrollbar_->SetAnchorPoint(gfx::PointF());
scrollbar_->SetIsDrawable(true);
@@ -1481,7 +1480,7 @@ class ScrollbarLayerLostContext : public LayerTreeHostContextTest {
virtual void BeginTest() OVERRIDE {
scoped_refptr<Layer> scroll_layer = Layer::Create();
scrollbar_layer_ = FakeScrollbarLayer::Create(
- false, true, scroll_layer->id());
+ false, true, scroll_layer->id(), false);
scrollbar_layer_->SetBounds(gfx::Size(10, 100));
layer_tree_host()->root_layer()->AddChild(scrollbar_layer_);
layer_tree_host()->root_layer()->AddChild(scroll_layer);

Powered by Google App Engine
This is Rietveld 408576698