Function get_image_key_values
pub fn get_image_key_values(image: &RCHandle<SkImage>) -> [u32; 6]Expand description
Retrieves a set of values that can be used as part of a cache key for the provided image.
Unfortunately, Image::unique_id isn’t sufficient as an Image cache key. In
particular, crate::Bitmap-backed Images can share a single crate::Bitmap and refer
to different subsets of it. In this situation the optimal key is based on the
crate::Bitmap’s generation ID and the subset rectangle.
For crate::Picture-backed images this method will attempt to generate a concise
internally-based key (i.e., containing picture ID, matrix translation, width and height,
etc.). For complicated crate::Picture-backed images (i.e., those w/ a paint or a full
matrix) it will fall back to using image’s unique key.
imageThe image for which key values are desired
Returns the resulting key values.