adoptTextureFrom
Creates GPU-backed SkImage from backendTexture associated with context.
Skia will assume ownership of the resource and will release it when no longer needed. A non-null Image is returned if format of backendTexture is recognized and supported. Recognized formats vary by GPU backend.
Return
created Image
Parameters
GPU context
texture residing on GPU
origin of backendTexture
color type of the resulting Image
Throws
if nullPtr is returned.
Creates GPU-backed SkImage from backendTexture associated with context.
Skia will assume ownership of the resource and will release it when no longer needed. A non-null Image is returned if format of backendTexture is recognized and supported. Recognized formats vary by GPU backend.
Return
created Image
Parameters
GPU context
texture residing on GPU
origin of backendTexture
color type of the resulting Image
alpha type of the resulting Image
Throws
if nullPtr is returned.