If I understand it correctly, setting CALayer.shouldRasterize = YES generates a bitmap with the contents of the layer and its whole hierarchy of sublayers.
CALayer.shouldRasterize = YES
T