GrImageContext

class GrImageContext

Methods

__init__

asDirectContext

asDirectContext(self: skia.GrContext_Base) -> GrDirectContext

backend

backend(self: skia.GrContext_Base) -> skia.GrBackendApi

compressedBackendFormat

compressedBackendFormat(self: skia.GrContext_Base, arg0: SkTextureCompressionType) -> skia.GrBackendFormat

defaultBackendFormat

defaultBackendFormat(self: skia.GrContext_Base, arg0: SkColorType, arg1: skia.GrRenderable) -> skia.GrBackendFormat

ref

ref(self: skia.RefCntBase) -> None

threadSafeProxy

threadSafeProxy(self: skia.GrContext_Base) -> GrContextThreadSafeProxy

unique

unique(self: skia.RefCntBase) -> bool

unref

unref(self: skia.RefCntBase) -> None

Methods

GrImageContext.__init__(*args, **kwargs)
GrImageContext.asDirectContext(self: skia.GrContext_Base) GrDirectContext

Safely downcast to a GrDirectContext.

GrImageContext.backend(self: skia.GrContext_Base) skia.GrBackendApi

The 3D API backing this context.

GrImageContext.compressedBackendFormat(self: skia.GrContext_Base, arg0: SkTextureCompressionType) skia.GrBackendFormat
GrImageContext.defaultBackendFormat(self: skia.GrContext_Base, arg0: SkColorType, arg1: skia.GrRenderable) skia.GrBackendFormat

Retrieve the default GrBackendFormat for a given ColorType and renderability. It is guaranteed that this backend format will be the one used by the GrContext ColorType and SurfaceCharacterization-based createBackendTexture() methods.

The caller should check that the returned format is valid.

GrImageContext.ref(self: skia.RefCntBase) None

Increment the reference count.

Must be balanced by a call to unref().

GrImageContext.threadSafeProxy(self: skia.GrContext_Base) GrContextThreadSafeProxy
GrImageContext.unique(self: skia.RefCntBase) bool

May return true if the caller is the only owner.

Ensures that all previous owner’s actions are complete.

GrImageContext.unref(self: skia.RefCntBase) None

Decrement the reference count.

If the reference count is 1 before the decrement, then delete the object. Note that if this is the case, then the object needs to have been allocated via new, and not on the stack.