Before I go spelunking in the code, can someone please clarify how optimal saveLayer is behind the scenes as it relates to the requested layer bounds?
e.g. Hypothetical, say I have a surface that is only say a 1024x1024 tile, and I have a path that is 2048x2048. If I use saveLayer or saveLayerRec with a 2048x2048 bounding box when drawing my path, is Skia behind the scenes intersecting those bounds to keep them constrained within the 1024x1024 surface bounds or do we need to tackle that optimization ourselves (user code)?
I know the docs mention "
SkRect bounds suggests but does not define the layer size. " but not much beyond.
-C