Function skia_safe::gpu::images::get_backend_texture_from_image
source · pub fn get_backend_texture_from_image(
image: &Image,
flush_pending_gr_context_io: bool
) -> Option<(BackendTexture, SurfaceOrigin)>Expand description
Retrieves the existing backend texture. If Image is not a Ganesh-backend texture image
or otherwise does not have such a texture, false is returned. Otherwise, returned will
be set to the image’s texture.
If flush_pending_gr_context_io is true, completes deferred I/O operations.
If origin in not None, copies location of content drawn into Image.
out_texture- Will be set to the underlying texture of the image if non-null.flush_pending_gr_context_io- flag to flush outstanding requestsorigin- Will be set to the origin orientation of the image if non-null. Returns:Noneif a Ganesh backend texture cannot be retrieved.