Function

CGLayerRetain

Increments the retain count of a layer object.

Declaration

CGLayerRef CGLayerRetain(CGLayerRef layer);

Parameters

layer

The layer to retain.

Return Value

The same layer you passed in as the layer parameter.

Discussion

This function is equivalent to calling CFRetain except that it does not crash if the layer parameter is null.

See Also

Retaining and Releasing Layers

CGLayerRelease

Decrements the retain count of a layer object.