GrContext_Base

class GrContext_Base

Methods

__init__

asDirectContext

Safely downcast to a GrDirectContext.

backend

The 3D API backing this context.

ref

Increment the reference count.

threadSafeProxy

unique

May return true if the caller is the only owner.

unref

Decrement the reference count.

Methods

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

Safely downcast to a GrDirectContext.

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

The 3D API backing this context.

GrContext_Base.ref(self: skia.RefCntBase) None

Increment the reference count.

Must be balanced by a call to unref().

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

May return true if the caller is the only owner.

Ensures that all previous owner’s actions are complete.

GrContext_Base.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.