Home | History | Annotate | Download | only in layers

Lines Matching refs:layer

5 #include "cc/layers/layer.h"
108 parent_ = Layer::Create();
109 child1_ = Layer::Create();
110 child2_ = Layer::Create();
111 child3_ = Layer::Create();
112 grand_child1_ = Layer::Create();
113 grand_child2_ = Layer::Create();
114 grand_child3_ = Layer::Create();
136 scoped_refptr<Layer> parent_;
137 scoped_refptr<Layer> child1_;
138 scoped_refptr<Layer> child2_;
139 scoped_refptr<Layer> child3_;
140 scoped_refptr<Layer> grand_child1_;
141 scoped_refptr<Layer> grand_child2_;
142 scoped_refptr<Layer> grand_child3_;
146 scoped_refptr<Layer> test_layer = Layer::Create();
158 scoped_refptr<Layer> parent = Layer::Create();
159 scoped_refptr<Layer> child = Layer::Create();
179 scoped_refptr<Layer> parent = Layer::Create();
180 scoped_refptr<Layer> child = Layer::Create();
196 scoped_refptr<Layer> parent = Layer::Create();
197 scoped_refptr<Layer> child1 = Layer::Create();
198 scoped_refptr<Layer> child2 = Layer::Create();
199 scoped_refptr<Layer> child3 = Layer::Create();
200 scoped_refptr<Layer> child4 = Layer::Create();
241 scoped_refptr<Layer> parent = Layer::Create();
242 scoped_refptr<Layer> child1 = Layer::Create();
243 scoped_refptr<Layer> child2 = Layer::Create();
262 scoped_refptr<Layer> parent = Layer::Create();
263 scoped_refptr<Layer> child1 = Layer::Create();
264 scoped_refptr<Layer> child2 = Layer::Create();
291 scoped_refptr<Layer> child4 = Layer::Create();
316 scoped_refptr<Layer> test_layer = Layer::Create();
317 scoped_refptr<Layer> child4 = Layer::Create();
362 scoped_refptr<Layer> old_parent = Layer::Create();
363 scoped_refptr<Layer> new_parent = Layer::Create();
365 scoped_refptr<Layer> child1 = Layer::Create();
366 scoped_refptr<Layer> child2 = Layer::Create();
393 scoped_refptr<Layer> parent = Layer::Create();
396 scoped_refptr<Layer> child = Layer::Create();
403 scoped_refptr<Layer> child_child = Layer::Create();
419 scoped_refptr<Layer> child4 = Layer::Create();
474 scoped_refptr<Layer> test_layer = Layer::Create();
498 // Case 1: Layer should accept dirty rects that go beyond its bounds.
519 // Case 4: SetNeedsDisplay() with a non-drawable layer
528 scoped_refptr<Layer> test_layer = Layer::Create();
533 scoped_refptr<Layer> dummy_layer1 = Layer::Create();
534 scoped_refptr<Layer> dummy_layer2 = Layer::Create();
585 scoped_refptr<Layer> test_layer = Layer::Create();
614 scoped_refptr<Layer> test_layer = Layer::Create();
633 scoped_refptr<Layer> test_layer = Layer::Create();
651 scoped_refptr<Layer> test_layer = Layer::Create();
692 scoped_refptr<Layer> test_layer = Layer::Create();
732 scoped_refptr<Layer> test_layer = Layer::Create();
768 scoped_refptr<Layer> parent = Layer::Create();
769 scoped_refptr<Layer> child = Layer::Create();
770 scoped_refptr<Layer> mask = Layer::Create();
771 scoped_refptr<Layer> replica = Layer::Create();
772 scoped_refptr<Layer> replica_mask = Layer::Create();
773 scoped_refptr<Layer> mask_replacement = Layer::Create();
774 scoped_refptr<Layer> replica_replacement = Layer::Create();
775 scoped_refptr<Layer> replica_mask_replacement = Layer::Create();
825 void AssertLayerTreeHostMatchesForSubtree(Layer* layer, LayerTreeHost* host) {
826 EXPECT_EQ(host, layer->layer_tree_host());
828 for (size_t i = 0; i < layer->children().size(); ++i)
829 AssertLayerTreeHostMatchesForSubtree(layer->children()[i].get(), host);
831 if (layer->mask_layer())
832 AssertLayerTreeHostMatchesForSubtree(layer->mask_layer(), host);
834 if (layer->replica_layer())
835 AssertLayerTreeHostMatchesForSubtree(layer->replica_layer(), host);
839 scoped_refptr<Layer> parent = Layer::Create();
840 scoped_refptr<Layer> child = Layer::Create();
841 scoped_refptr<Layer> mask = Layer::Create();
842 scoped_refptr<Layer> replica = Layer::Create();
843 scoped_refptr<Layer> replica_mask = Layer::Create();
856 // Setting the root layer should set the host pointer for all layers in the
862 // Clearing the root layer should also clear out the host pointers for all
870 scoped_refptr<Layer> parent = Layer::Create();
878 // Adding a subtree to a layer already associated with a host should set the
880 scoped_refptr<Layer> child = Layer::Create();
881 scoped_refptr<Layer> grand_child = Layer::Create();
885 scoped_refptr<Layer> child_mask = Layer::Create();
887 scoped_refptr<Layer> child_replica = Layer::Create();
889 scoped_refptr<Layer> child_replica_mask = Layer::Create();
899 scoped_refptr<Layer> parent = Layer::Create();
900 scoped_refptr<Layer> child = Layer::Create();
901 scoped_refptr<Layer> mask = Layer::Create();
902 scoped_refptr<Layer> replica = Layer::Create();
903 scoped_refptr<Layer> replica_mask = Layer::Create();
930 scoped_refptr<Layer> first_parent = Layer::Create();
931 scoped_refptr<Layer> first_child = Layer::Create();
932 scoped_refptr<Layer> second_parent = Layer::Create();
933 scoped_refptr<Layer> second_child = Layer::Create();
934 scoped_refptr<Layer> second_grand_child = Layer::Create();
948 // Now reparent the subtree starting at second_child to a layer in a different
955 // The moved layer and its children should point to the new host.
966 scoped_refptr<Layer> parent = Layer::Create();
967 scoped_refptr<Layer> mask = Layer::Create();
968 scoped_refptr<Layer> replica = Layer::Create();
969 scoped_refptr<Layer> mask_child = Layer::Create();
970 scoped_refptr<Layer> replica_child = Layer::Create();
971 scoped_refptr<Layer> mask_replacement = Layer::Create();
972 scoped_refptr<Layer> replica_replacement = Layer::Create();
990 // Same for replacing a replica layer.
1000 scoped_refptr<Layer> root = Layer::Create();
1001 scoped_refptr<Layer> child = Layer::Create();
1008 static bool AddTestAnimation(Layer* layer) {
1023 return layer->AddAnimation(animation.Pass());
1027 scoped_refptr<Layer> layer = Layer::Create();
1031 EXPECT_FALSE(AddTestAnimation(layer.get()));
1034 layer->layer_animation_controller()->SetAnimationRegistrar(registrar.get());
1037 EXPECT_TRUE(AddTestAnimation(layer.get()));
1043 layer_tree_host->SetRootLayer(layer);
1044 AssertLayerTreeHostMatchesForSubtree(layer.get(), layer_tree_host.get());
1048 EXPECT_FALSE(AddTestAnimation(layer.get()));
1055 scoped_refptr<Layer> layer = Layer::Create();
1056 layer_tree_host->SetRootLayer(layer);
1061 layer->SetContentsOpaque(!!contents_opaque);
1062 layer->SetBackgroundColor(layer_opaque ? SK_ColorRED
1067 SkColor safe_color = layer->SafeOpaqueBackgroundColor();