Lines Matching refs:layer
68 static AbstractCACFLayerTreeHost* layerTreeHostForLayer(const PlatformCALayer* layer)
70 // We need the AbstractCACFLayerTreeHost associated with this layer, which is stored in the UserData of the CACFContext
71 void* userData = wkCACFLayerGetContextUserData(layer->platformLayer());
78 static PlatformCALayerWinInternal* intern(const PlatformCALayer* layer)
80 return static_cast<PlatformCALayerWinInternal*>(CACFLayerGetUserData(layer->platformLayer()));
83 static PlatformCALayerWinInternal* intern(void* layer)
85 return static_cast<PlatformCALayerWinInternal*>(CACFLayerGetUserData(static_cast<CACFLayerRef>(layer)));
106 PlatformCALayer* layer = PlatformCALayer::platformCALayer(caLayer);
107 if (layer && layer->owner())
108 layer->owner()->platformCALayerLayoutSublayersOfLayer(layer);
111 PlatformCALayer::PlatformCALayer(LayerType layerType, PlatformLayer* layer, PlatformCALayerClient* owner)
114 if (layer) {
116 m_layer = layer;
216 void PlatformCALayer::appendSublayer(PlatformCALayer* layer)
219 insertSublayer(layer, sublayerCount());
222 void PlatformCALayer::insertSublayer(PlatformCALayer* layer, size_t index)
224 intern(this)->insertSublayer(layer, index);
286 // We don't "remove" a layer from AbstractCACFLayerTreeHost when it loses an animation.
287 // There may be other active animations on the layer and if an animation
288 // callback is fired on a layer without any animations no harm is done.
307 void PlatformCALayer::setMask(PlatformCALayer* layer)
309 CACFLayerSetMask(m_layer.get(), layer ? layer->platformLayer() : 0);
607 static void printLayer(const PlatformCALayer* layer, int indent)
609 FloatPoint3D layerPosition = layer->position();
610 FloatPoint3D layerAnchorPoint = layer->anchorPoint();
611 FloatRect layerBounds = layer->bounds();
615 switch (layer->layerType()) {
616 case PlatformCALayer::LayerTypeLayer: layerTypeName = "layer"; break;
617 case PlatformCALayer::LayerTypeWebLayer: layerTypeName = "web-layer"; break;
618 case PlatformCALayer::LayerTypeTransformLayer: layerTypeName = "transform-layer"; break;
619 case PlatformCALayer::LayerTypeWebTiledLayer: layerTypeName = "web-tiled-layer"; break;
620 case PlatformCALayer::LayerTypeRootLayer: layerTypeName = "root-layer"; break;
621 case PlatformCALayer::LayerTypeCustom: layerTypeName = "custom-layer"; break;
628 layerAnchorPoint.x(), layerAnchorPoint.y(), layerAnchorPoint.z(), layer->superlayer());
631 String layerName = layer->name();
638 bool layerMasksToBounds = layer->masksToBounds();
645 float layerOpacity = layer->opacity();
652 TransformationMatrix layerTransform = layer->sublayerTransform();
661 layerTransform = layer->transform();
670 CFTypeRef layerContents = layer->contents();
681 int n = layer->sublayerCount();
687 intern(layer)->getSublayers(sublayers);
707 // Print layer tree from the root