Lines Matching refs:layer

33   scoped_ptr<SolidColorLayerImpl> layer =
35 layer->draw_properties().visible_content_rect = visible_content_rect;
36 layer->SetBounds(layer_size);
37 layer->SetContentBounds(layer_size);
38 layer->CreateRenderSurface();
39 layer->draw_properties().render_target = layer.get();
42 layer->AppendQuads(render_pass.get(), occlusion_tracker, &data);
60 scoped_ptr<SolidColorLayerImpl> layer =
62 layer->draw_properties().visible_content_rect = visible_content_rect;
63 layer->SetBounds(layer_size);
64 layer->SetContentBounds(layer_size);
65 layer->SetBackgroundColor(test_color);
66 layer->CreateRenderSurface();
67 layer->draw_properties().render_target = layer.get();
70 layer->AppendQuads(render_pass.get(), occlusion_tracker, &data);
90 scoped_ptr<SolidColorLayerImpl> layer =
92 layer->draw_properties().visible_content_rect = visible_content_rect;
93 layer->SetBounds(layer_size);
94 layer->SetContentBounds(layer_size);
95 layer->draw_properties().opacity = opacity;
96 layer->CreateRenderSurface();
97 layer->draw_properties().render_target = layer.get();
100 layer->AppendQuads(render_pass.get(), occlusion_tracker, &data);
112 scoped_refptr<SolidColorLayer> layer = SolidColorLayer::Create();
113 layer->SetBounds(layer_size);
114 layer->SetForceRenderSurface(true);
117 root->AddChild(layer);
128 EXPECT_FALSE(layer->contents_opaque());
129 layer->SetBackgroundColor(SkColorSetARGBInline(255, 10, 20, 30));
130 EXPECT_TRUE(layer->contents_opaque());
134 layer->id());
135 layer->PushPropertiesTo(layer_impl.get());
137 // The impl layer should call itself opaque as well.
140 // Impl layer has 1 opacity, and the color is opaque, so the opaque_rect
155 EXPECT_TRUE(layer->contents_opaque());
156 layer->SetBackgroundColor(SkColorSetARGBInline(254, 10, 20, 30));
157 EXPECT_FALSE(layer->contents_opaque());
161 layer->id());
162 layer->PushPropertiesTo(layer_impl.get());
164 // The impl layer should callnot itself opaque anymore.
167 // Impl layer has 1 opacity, but the color is not opaque, so the opaque_rect