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

Unified Diff: cc/trees/layer_tree_host_unittest_no_message_loop.cc

Issue 1101823002: CC Animations: Make LayerAnimationController creation optional (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Plumb LayerSettings parameter for cc::Layer construction. Created 5 years, 7 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_no_message_loop.cc
diff --git a/cc/trees/layer_tree_host_unittest_no_message_loop.cc b/cc/trees/layer_tree_host_unittest_no_message_loop.cc
index 0b68ffb22630eca9b761b49f68d6e2a4b38f7228..5b1a9d05ed2959b983308a48a4afab1bd0f0d97a 100644
--- a/cc/trees/layer_tree_host_unittest_no_message_loop.cc
+++ b/cc/trees/layer_tree_host_unittest_no_message_loop.cc
@@ -148,7 +148,7 @@ class LayerTreeHostNoMessageLoopSmokeTest
// Set up root layer.
{
scoped_refptr<SolidColorLayer> solid_color_layer =
- SolidColorLayer::Create();
+ SolidColorLayer::Create(LayerSettings());
solid_color_layer->SetBackgroundColor(SK_ColorRED);
solid_color_layer->SetBounds(size_);
solid_color_layer->SetIsDrawable(true);
@@ -174,9 +174,10 @@ class LayerTreeHostNoMessageLoopDelegatedLayer
frame_provider_ = new DelegatedFrameProvider(
resource_collection_.get(), CreateFrameDataWithResource(998));
- root_layer_ = Layer::Create();
- delegated_layer_ =
- FakeDelegatedRendererLayer::Create(frame_provider_.get());
+ LayerSettings layer_settings;
+ root_layer_ = Layer::Create(layer_settings);
+ delegated_layer_ = FakeDelegatedRendererLayer::Create(
+ layer_settings, frame_provider_.get());
delegated_layer_->SetBounds(size_);
delegated_layer_->SetIsDrawable(true);
root_layer_->AddChild(delegated_layer_);

Powered by Google App Engine
This is Rietveld 408576698