Home
last modified time | relevance | path

Searched refs:mask_layer (Results 1 – 20 of 20) sorted by relevance

/external/chromium_org/cc/layers/
Drender_surface_impl.cc184 LayerImpl* mask_layer = owning_layer_->mask_layer(); in AppendQuads() local
185 if (mask_layer && in AppendQuads()
186 (!mask_layer->DrawsContent() || mask_layer->bounds().IsEmpty())) in AppendQuads()
187 mask_layer = NULL; in AppendQuads()
189 if (!mask_layer && for_replica) { in AppendQuads()
190 mask_layer = owning_layer_->replica_layer()->mask_layer(); in AppendQuads()
191 if (mask_layer && in AppendQuads()
192 (!mask_layer->DrawsContent() || mask_layer->bounds().IsEmpty())) in AppendQuads()
193 mask_layer = NULL; in AppendQuads()
197 if (mask_layer) { in AppendQuads()
[all …]
Dlayer.h122 void SetMaskLayer(Layer* mask_layer);
123 Layer* mask_layer() { return mask_layer_.get(); } in mask_layer() function
124 const Layer* mask_layer() const { return mask_layer_.get(); } in mask_layer() function
Dlayer_impl.h169 void SetMaskLayer(scoped_ptr<LayerImpl> mask_layer);
170 LayerImpl* mask_layer() { return mask_layer_.get(); } in mask_layer() function
171 const LayerImpl* mask_layer() const { return mask_layer_.get(); } in mask_layer() function
Dlayer_impl.cc810 void LayerImpl::SetMaskLayer(scoped_ptr<LayerImpl> mask_layer) { in SetMaskLayer() argument
811 int new_layer_id = mask_layer ? mask_layer->id() : -1; in SetMaskLayer()
813 if (mask_layer) { in SetMaskLayer()
814 DCHECK_EQ(layer_tree_impl(), mask_layer->layer_tree_impl()); in SetMaskLayer()
820 mask_layer_ = mask_layer.Pass(); in SetMaskLayer()
Dlayer.cc424 void Layer::SetMaskLayer(Layer* mask_layer) { in SetMaskLayer() argument
426 if (mask_layer_.get() == mask_layer) in SetMaskLayer()
432 mask_layer_ = mask_layer; in SetMaskLayer()
Dlayer_unittest.cc859 EXPECT_EQ(replica.get(), replica->mask_layer()->parent()); in TEST_F()
960 if (layer->mask_layer()) in AssertLayerTreeHostMatchesForSubtree()
961 AssertLayerTreeHostMatchesForSubtree(layer->mask_layer(), host); in AssertLayerTreeHostMatchesForSubtree()
/external/chromium_org/cc/trees/
Dlayer_tree_host_common.h171 if (root_layer->mask_layer() && root_layer->mask_layer()->id() == layer_id) in FindLayerInSubtree()
172 return root_layer->mask_layer(); in FindLayerInSubtree()
192 if (LayerType* mask_layer = root_layer->mask_layer()) in CallFunctionForSubtree() local
193 function.Run(mask_layer); in CallFunctionForSubtree()
196 if (LayerType* mask_layer = replica_layer->mask_layer()) in CallFunctionForSubtree() local
197 function.Run(mask_layer); in CallFunctionForSubtree()
Dlayer_tree_host_common.cc376 return layer->masks_to_bounds() || layer->mask_layer(); in LayerClipsSubtree()
547 if (layer->mask_layer()) in SavePaintPropertiesLayer()
548 layer->mask_layer()->SavePaintProperties(); in SavePaintPropertiesLayer()
549 if (layer->replica_layer() && layer->replica_layer()->mask_layer()) in SavePaintPropertiesLayer()
550 layer->replica_layer()->mask_layer()->SavePaintProperties(); in SavePaintPropertiesLayer()
570 if (layer->mask_layer()) { in SubtreeShouldRenderToSeparateSurface()
949 Layer* mask_layer = layer->mask_layer(); in CalculateContentsScale() local
950 if (mask_layer) { in CalculateContentsScale()
951 mask_layer->CalculateContentsScale( in CalculateContentsScale()
953 &mask_layer->draw_properties().contents_scale_x, in CalculateContentsScale()
[all …]
Dlayer_tree_host.cc935 if (it->mask_layer()) in SetPrioritiesForLayers()
936 it->mask_layer()->SetTexturePriorities(calculator); in SetPrioritiesForLayers()
937 if (it->replica_layer() && it->replica_layer()->mask_layer()) in SetPrioritiesForLayers()
938 it->replica_layer()->mask_layer()->SetTexturePriorities(calculator); in SetPrioritiesForLayers()
998 Layer* mask_layer = render_surface_layer->mask_layer(); in PaintMasksForRenderSurface() local
999 if (mask_layer) { in PaintMasksForRenderSurface()
1000 *did_paint_content |= mask_layer->Update(queue, NULL); in PaintMasksForRenderSurface()
1001 *need_more_updates |= mask_layer->NeedMoreUpdates(); in PaintMasksForRenderSurface()
1006 render_surface_layer->replica_layer()->mask_layer() : NULL; in PaintMasksForRenderSurface()
Dlayer_tree_impl.cc545 if (layer->mask_layer()) { in UpdateDrawProperties()
546 layer->mask_layer()->UpdateTiles(occlusion_in_content_space, in UpdateDrawProperties()
549 if (layer->replica_layer() && layer->replica_layer()->mask_layer()) { in UpdateDrawProperties()
550 layer->replica_layer()->mask_layer()->UpdateTiles( in UpdateDrawProperties()
606 if (layer->mask_layer()) in DidBecomeActiveRecursive()
607 layer->mask_layer()->DidBecomeActive(); in DidBecomeActiveRecursive()
608 if (layer->replica_layer() && layer->replica_layer()->mask_layer()) in DidBecomeActiveRecursive()
609 layer->replica_layer()->mask_layer()->DidBecomeActive(); in DidBecomeActiveRecursive()
1102 if (current->mask_layer()) in ReleaseResourcesRecursive()
1103 ReleaseResourcesRecursive(current->mask_layer()); in ReleaseResourcesRecursive()
[all …]
Ddamage_tracker_unittest.cc68 render_surface_layer_list[i]->mask_layer(), in EmulateDrawingOneFrame()
1137 scoped_ptr<LayerImpl> mask_layer = in TEST_F() local
1139 mask_layer->SetPosition(child->position()); in TEST_F()
1140 mask_layer->SetBounds(child->bounds()); in TEST_F()
1141 mask_layer->SetContentBounds(child->bounds()); in TEST_F()
1142 child->SetMaskLayer(mask_layer.Pass()); in TEST_F()
1144 LayerImpl* mask_layer = child->mask_layer(); in TEST_F() local
1166 mask_layer->SetUpdateRect(gfx::RectF(1.f, 2.f, 3.f, 4.f)); in TEST_F()
1185 mask_layer->SetStackingOrderChanged(true); in TEST_F()
1248 LayerImpl* replica_mask_layer = grand_child1_replica->mask_layer(); in TEST_F()
[all …]
Dtree_synchronizer_unittest.cc114 ASSERT_EQ(!!layer->mask_layer(), !!layer_impl->mask_layer()); in ExpectTreesAreIdentical()
115 if (layer->mask_layer()) { in ExpectTreesAreIdentical()
118 layer->mask_layer(), layer_impl->mask_layer(), tree_impl); in ExpectTreesAreIdentical()
503 scoped_refptr<Layer> mask_layer = Layer::Create(); in TEST_F() local
504 layer_tree_root->children()[0]->SetMaskLayer(mask_layer.get()); in TEST_F()
Dtree_synchronizer.cc120 new_layers, old_layers, layer->mask_layer(), tree_impl)); in SynchronizeTreesRecursiveInternal()
209 PushPropertiesInternal(layer->mask_layer(), in PushPropertiesInternal()
210 layer_impl->mask_layer(), in PushPropertiesInternal()
Ddamage_tracker.cc371 if (layer->replica_layer() && layer->replica_layer()->mask_layer()) { in ExtendDamageForRenderSurface()
372 LayerImpl* replica_mask_layer = layer->replica_layer()->mask_layer(); in ExtendDamageForRenderSurface()
Dlayer_tree_host_common_unittest.cc5554 scoped_refptr<Layer> mask_layer = Layer::Create(); in TEST_F() local
5559 child->SetMaskLayer(mask_layer.get()); in TEST_F()
5574 mask_layer.get(), in TEST_F()
5575 LayerTreeHostCommon::FindLayerInSubtree(root.get(), mask_layer->id())); in TEST_F()
8062 if (layer->mask_layer()) in GatherDrawnLayers()
8063 drawn_layers->insert(layer->mask_layer()); in GatherDrawnLayers()
8064 if (layer->replica_layer() && layer->replica_layer()->mask_layer()) in GatherDrawnLayers()
8065 drawn_layers->insert(layer->replica_layer()->mask_layer()); in GatherDrawnLayers()
8216 EXPECT_EQ(member_id, membership_id(child_raw->mask_layer())); in TEST_F()
8222 expected.insert(child_raw->mask_layer()); in TEST_F()
[all …]
Dlayer_tree_host_impl_unittest.cc5102 FakeMaskLayerImpl* mask_layer = scoped_mask_layer.get(); in TEST_F() local
5123 mask_layer->SetBounds(scaling_layer_size); in TEST_F()
5124 mask_layer->SetContentBounds(scaling_layer_size); in TEST_F()
5125 mask_layer->SetPosition(gfx::PointF()); in TEST_F()
5126 mask_layer->SetDrawsContent(true); in TEST_F()
5191 mask_layer->SetContentBounds(content_bounds); in TEST_F()
5192 mask_layer->SetContentsScale(device_scale_factor, device_scale_factor); in TEST_F()
5231 FakeMaskLayerImpl* mask_layer = scoped_mask_layer.get(); in TEST_F() local
5246 mask_layer->SetBounds(mask_size); in TEST_F()
5247 mask_layer->SetContentBounds(mask_size); in TEST_F()
[all …]
Docclusion_tracker.cc235 if (finished_target->mask_layer() || !SurfaceOpacityKnown(surface) || in FinishedRenderTarget()
Dlayer_tree_impl_unittest.cc776 ASSERT_FALSE(intermediate_layer->mask_layer()); in TEST_F()
Dlayer_tree_host_impl.cc496 render_surface_layer->mask_layer(), in TrackDamageForAllSurfaces()
/external/chromium_org/cc/test/
Dtiled_layer_test_common.cc126 if (mask_layer()) { in ResetNumDependentsNeedPushProperties()
127 if (mask_layer()->needs_push_properties() || in ResetNumDependentsNeedPushProperties()
128 mask_layer()->descendant_needs_push_properties()) in ResetNumDependentsNeedPushProperties()