Lines Matching refs:Layer
13 #include "cc/layers/layer.h"
63 Layer* layer_root,
81 LayerType* layer,
83 scoped_ptr<LayerImpl> layer_impl = old_layers->take(layer->id());
86 layer_impl = layer->CreateLayerImpl(tree_impl);
88 (*new_layers)[layer->id()] = layer_impl.get();
96 LayerType* layer,
98 if (!layer)
102 ReuseOrCreateLayerImpl(new_layers, old_layers, layer, tree_impl);
105 for (size_t i = 0; i < layer->children().size(); ++i) {
107 new_layers, old_layers, layer->child_at(i), tree_impl));
111 new_layers, old_layers, layer->mask_layer(), tree_impl));
113 new_layers, old_layers, layer->replica_layer(), tree_impl));
126 Layer* layer,
129 new_layers, old_layers, layer, tree_impl);
135 LayerImpl* layer,
138 new_layers, old_layers, layer, tree_impl);
144 LayerType* layer) {
145 if (!layer)
148 for (size_t i = 0; i < layer->children().size(); ++i) {
150 LayerType, ScrollbarLayerType>(new_layers, layer->child_at(i));
153 ScrollbarLayerType* scrollbar_layer = layer->ToScrollbarLayer();
158 new_layers->find(layer->id());
177 Layer* layer) {
178 UpdateScrollbarLayerPointersRecursiveInternal<Layer, ScrollbarLayerInterface>(
179 new_layers, layer);
183 LayerImpl* layer) {
186 ScrollbarLayerImplBase>(new_layers, layer);
191 Layer* layer, size_t num) {
192 layer->num_dependents_need_push_properties_ = num;
197 LayerImpl* layer, size_t num) {
203 LayerType* layer,
206 if (!layer) {
211 DCHECK_EQ(layer->id(), layer_impl->id());
213 bool push_layer = layer->needs_push_properties();
215 layer->descendant_needs_push_properties();
218 layer->PushPropertiesTo(layer_impl);
222 PushPropertiesInternal(layer->mask_layer(),
225 PushPropertiesInternal(layer->replica_layer(),
230 DCHECK_EQ(layer->children().size(), impl_children.size());
232 for (size_t i = 0; i < layer->children().size(); ++i) {
233 PushPropertiesInternal(layer->child_at(i),
238 // When PushPropertiesTo completes for a layer, it may still keep
239 // its needs_push_properties() state if the layer must push itself
244 layer, num_dependents_need_push_properties);
248 layer->needs_push_properties();
252 void TreeSynchronizer::PushProperties(Layer* layer,
256 layer, layer_impl, &num_dependents_need_push_properties);
259 void TreeSynchronizer::PushProperties(LayerImpl* layer, LayerImpl* layer_impl) {
262 layer, layer_impl, &num_dependents_need_push_properties);