def test_Surface_MakeFromBackendTexture(context): texture = skia.GrBackendTexture() assert isinstance( skia.Surface.MakeFromBackendTexture( context, texture, skia.kTopLeft_GrSurfaceOrigin, 0, skia.kRGBA_8888_ColorType, skia.ColorSpace.MakeSRGB(), None), (type(None), skia.Surface))
def test_Surface_MakeFromBackendTexture_2(context): characterization = skia.SurfaceCharacterization() texture = skia.GrBackendTexture() assert isinstance( skia.Surface.MakeFromBackendTexture(context, characterization, texture), (type(None), skia.Surface))
def test_Imag_MakeBackendTextureFromImage(context, image): backendTexture = skia.GrBackendTexture() assert isinstance( skia.Image.MakeBackendTextureFromImage(context, image, backendTexture), bool)
def test_Surface_replaceBackendTexture(surface): assert isinstance( surface.replaceBackendTexture( skia.GrBackendTexture(), skia.kTopLeft_GrSurfaceOrigin), bool)
def test_GrBackendTexture_init_glInfo(gl_texture_info): assert isinstance( skia.GrBackendTexture(128, 128, skia.GrMipMapped.kNo, gl_texture_info), skia.GrBackendTexture)
def backend_texture(context, gl_texture_info): return skia.GrBackendTexture(256, 256, skia.GrMipMapped.kNo, gl_texture_info)
def test_GrBackendTexture_init_mockInfo(mock_texture_info): assert isinstance( skia.GrBackendTexture(128, 128, skia.GrMipMapped.kNo, mock_texture_info), skia.GrBackendTexture)
def test_GrBackendTexture_init_mockInfo(): mock_info = skia.GrMockTextureInfo() assert isinstance( skia.GrBackendTexture(128, 128, skia.GrMipMapped.kNo, mock_info), skia.GrBackendTexture)
def test_GrBackendTexture_init_glInfo(): gl_info = skia.GrGLTextureInfo() assert isinstance( skia.GrBackendTexture(128, 128, skia.GrMipMapped.kNo, gl_info), skia.GrBackendTexture)
def backend_texture(): return skia.GrBackendTexture()