fn update_clip_task_for_brush(
instance: &PrimitiveInstance,
prim_origin: &LayoutPoint,
prim_spatial_node_index: SpatialNodeIndex,
root_spatial_node_index: SpatialNodeIndex,
pic_context: &PictureContext,
pic_state: &mut PictureState,
frame_context: &FrameBuildingContext<'_>,
frame_state: &mut FrameBuildingState<'_>,
prim_store: &PrimitiveStore,
data_stores: &mut DataStores,
segments_store: &mut Storage<BrushSegment>,
segment_instances_store: &mut Storage<SegmentedInstance>,
clip_mask_instances: &mut Vec<ClipMaskKind>,
device_pixel_scale: DevicePixelScale,
) -> Option<ClipTaskIndex>