[][src]Struct skia_bindings::GrContext

#[repr(C)]
pub struct GrContext {
    pub _bindgen_opaque_blob: [u64; 35],
}

Fields

_bindgen_opaque_blob: [u64; 35]

Methods

impl GrContext[src]

pub unsafe fn MakeGL(
    arg1: sk_sp<GrGLInterface>,
    arg2: *const GrContextOptions
) -> sk_sp<GrContext>
[src]

pub unsafe fn MakeGL1(arg1: sk_sp<GrGLInterface>) -> sk_sp<GrContext>[src]

pub unsafe fn MakeGL2(arg1: *const GrContextOptions) -> sk_sp<GrContext>[src]

pub unsafe fn MakeGL3() -> sk_sp<GrContext>[src]

pub unsafe fn MakeVulkan(
    arg1: *const GrVkBackendContext,
    arg2: *const GrContextOptions
) -> sk_sp<GrContext>
[src]

pub unsafe fn MakeVulkan1(arg1: *const GrVkBackendContext) -> sk_sp<GrContext>[src]

pub unsafe fn MakeMock(
    arg1: *const GrMockOptions,
    arg2: *const GrContextOptions
) -> sk_sp<GrContext>
[src]

pub unsafe fn MakeMock1(arg1: *const GrMockOptions) -> sk_sp<GrContext>[src]

pub unsafe fn threadSafeProxy(&mut self) -> sk_sp<GrContextThreadSafeProxy>[src]

pub unsafe fn resetContext(&mut self, state: u32)[src]

pub unsafe fn resetGLTextureBindings(&mut self)[src]

pub unsafe fn getResourceCacheLimits(
    &self,
    maxResources: *mut c_int,
    maxResourceBytes: *mut usize
)
[src]

pub unsafe fn getResourceCacheUsage(
    &self,
    resourceCount: *mut c_int,
    resourceBytes: *mut usize
)
[src]

pub unsafe fn getResourceCachePurgeableBytes(&self) -> usize[src]

pub unsafe fn setResourceCacheLimits(
    &mut self,
    maxResources: c_int,
    maxResourceBytes: usize
)
[src]

pub unsafe fn performDeferredCleanup(
    &mut self,
    msNotUsed: std_chrono_milliseconds
)
[src]

pub unsafe fn purgeUnlockedResources(
    &mut self,
    bytesToPurge: usize,
    preferScratchResources: bool
)
[src]

pub unsafe fn purgeUnlockedResources1(&mut self, scratchResourcesOnly: bool)[src]

pub unsafe fn maxTextureSize(&self) -> c_int[src]

pub unsafe fn maxRenderTargetSize(&self) -> c_int[src]

pub unsafe fn colorTypeSupportedAsImage(&self, arg1: SkColorType) -> bool[src]

pub unsafe fn maxSurfaceSampleCountForColorType(
    &self,
    arg1: SkColorType
) -> c_int
[src]

pub unsafe fn wait(
    &mut self,
    numSemaphores: c_int,
    waitSemaphores: *const GrBackendSemaphore
) -> bool
[src]

pub unsafe fn flush(
    &mut self,
    arg1: *const GrFlushInfo,
    arg2: *const GrPrepareForExternalIORequests
) -> GrSemaphoresSubmitted
[src]

pub unsafe fn checkAsyncWorkCompletion(&mut self)[src]

pub unsafe fn priv_(&mut self) -> GrContextPriv[src]

pub unsafe fn priv1(&self) -> GrContextPriv[src]

pub unsafe fn dumpMemoryStatistics(
    &self,
    traceMemoryDump: *mut SkTraceMemoryDump
)
[src]

pub unsafe fn supportsDistanceFieldText(&self) -> bool[src]

pub unsafe fn storeVkPipelineCacheData(&mut self)[src]

pub unsafe fn ComputeTextureSize(
    type_: SkColorType,
    width: c_int,
    height: c_int,
    arg1: GrMipMapped,
    useNextPow2: bool
) -> usize
[src]

pub unsafe fn createBackendTexture(
    &mut self,
    width: c_int,
    height: c_int,
    arg1: *const GrBackendFormat,
    arg2: GrMipMapped,
    arg3: GrRenderable,
    arg4: GrProtected
) -> GrBackendTexture
[src]

pub unsafe fn createBackendTexture1(
    &mut self,
    width: c_int,
    height: c_int,
    arg1: SkColorType,
    arg2: GrMipMapped,
    arg3: GrRenderable,
    arg4: GrProtected
) -> GrBackendTexture
[src]

pub unsafe fn createBackendTexture2(
    &mut self,
    characterization: *const SkSurfaceCharacterization
) -> GrBackendTexture
[src]

pub unsafe fn createBackendTexture3(
    &mut self,
    width: c_int,
    height: c_int,
    arg1: *const GrBackendFormat,
    color: *const SkColor4f,
    arg2: GrMipMapped,
    arg3: GrRenderable,
    arg4: GrProtected
) -> GrBackendTexture
[src]

pub unsafe fn createBackendTexture4(
    &mut self,
    width: c_int,
    height: c_int,
    arg1: SkColorType,
    color: *const SkColor4f,
    arg2: GrMipMapped,
    arg3: GrRenderable,
    arg4: GrProtected
) -> GrBackendTexture
[src]

pub unsafe fn createBackendTexture5(
    &mut self,
    characterization: *const SkSurfaceCharacterization,
    color: *const SkColor4f
) -> GrBackendTexture
[src]

pub unsafe fn deleteBackendTexture(&mut self, arg1: GrBackendTexture)[src]

pub unsafe fn new(
    arg1: GrBackendApi,
    arg2: *const GrContextOptions,
    contextID: i32
) -> Self
[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]