Home | History | Annotate | Download | only in trees

Lines Matching refs:layer

7 #include "cc/layers/layer.h"
16 class TestLayer : public Layer {
23 const OcclusionTracker<Layer>* occlusion) OVERRIDE {
28 const TestOcclusionTracker<Layer>* test_occlusion =
29 static_cast<const TestOcclusionTracker<Layer>*>(occlusion);
43 TestLayer() : Layer() {
75 void VerifyOcclusion(TestLayer* layer) const {
76 EXPECT_EQ(layer->expected_occlusion().ToString(),
77 layer->occlusion().ToString());
79 for (size_t i = 0; i < layer->children().size(); ++i) {
80 TestLayer* child = static_cast<TestLayer*>(layer->children()[i].get());
85 void SetLayerPropertiesForTesting(TestLayer* layer,
91 layer->RemoveAllChildren();
93 parent->AddChild(layer);
94 layer->SetTransform(transform);
95 layer->SetPosition(position);
96 layer->SetBounds(bounds);
97 layer->SetContentsOpaque(opaque);
119 // The child layer is a surface and the grand_child is opaque, but clipped
149 // If the child layer is opaque, then it adds to the occlusion seen by the
179 // Add a second child to the root layer and the regions should merge
212 // If the child layer has a mask on it, then it shouldn't contribute to
245 // If the child layer with a mask is below child2, then child2 should
281 // If the child layer has a non-opaque opacity, then it shouldn't
314 // If the child layer with non-opaque opacity is below child2, then
350 // If the child layer has a blend mode, then it shouldn't
383 // If the child layer with a blend mode is below child2, then
426 // If the child layer has a filter that changes alpha values, and is below
470 // If the child layer has a filter that moves pixels/changes alpha, and is
506 // If the child layer has copy request, and is below child2,
508 // The child layer will still receive occlusion from inside, and
509 // the root layer will recive occlusion from child.
541 // If the child layer has copy request, and is below child2,
543 // The child layer will still receive occlusion from inside, and
544 // the root layer will recive occlusion from child.
558 scoped_refptr<Layer> replica_layer(Layer::Create());