[−][src]Struct skia_bindings::GrContext
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]
arg1: sk_sp<GrGLInterface>,
arg2: *const GrContextOptions
) -> sk_sp<GrContext>
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]
arg1: *const GrVkBackendContext,
arg2: *const GrContextOptions
) -> sk_sp<GrContext>
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]
arg1: *const GrMockOptions,
arg2: *const GrContextOptions
) -> sk_sp<GrContext>
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]
&self,
maxResources: *mut c_int,
maxResourceBytes: *mut usize
)
pub unsafe fn getResourceCacheUsage(
&self,
resourceCount: *mut c_int,
resourceBytes: *mut usize
)
[src]
&self,
resourceCount: *mut c_int,
resourceBytes: *mut usize
)
pub unsafe fn getResourceCachePurgeableBytes(&self) -> usize
[src]
pub unsafe fn setResourceCacheLimits(
&mut self,
maxResources: c_int,
maxResourceBytes: usize
)
[src]
&mut self,
maxResources: c_int,
maxResourceBytes: usize
)
pub unsafe fn performDeferredCleanup(
&mut self,
msNotUsed: std_chrono_milliseconds
)
[src]
&mut self,
msNotUsed: std_chrono_milliseconds
)
pub unsafe fn purgeUnlockedResources(
&mut self,
bytesToPurge: usize,
preferScratchResources: bool
)
[src]
&mut self,
bytesToPurge: usize,
preferScratchResources: bool
)
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]
&self,
arg1: SkColorType
) -> c_int
pub unsafe fn wait(
&mut self,
numSemaphores: c_int,
waitSemaphores: *const GrBackendSemaphore
) -> bool
[src]
&mut self,
numSemaphores: c_int,
waitSemaphores: *const GrBackendSemaphore
) -> bool
pub unsafe fn flush(
&mut self,
arg1: *const GrFlushInfo,
arg2: *const GrPrepareForExternalIORequests
) -> GrSemaphoresSubmitted
[src]
&mut self,
arg1: *const GrFlushInfo,
arg2: *const GrPrepareForExternalIORequests
) -> GrSemaphoresSubmitted
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]
&self,
traceMemoryDump: *mut SkTraceMemoryDump
)
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]
type_: SkColorType,
width: c_int,
height: c_int,
arg1: GrMipMapped,
useNextPow2: bool
) -> usize
pub unsafe fn createBackendTexture(
&mut self,
width: c_int,
height: c_int,
arg1: *const GrBackendFormat,
arg2: GrMipMapped,
arg3: GrRenderable,
arg4: GrProtected
) -> GrBackendTexture
[src]
&mut self,
width: c_int,
height: c_int,
arg1: *const GrBackendFormat,
arg2: GrMipMapped,
arg3: GrRenderable,
arg4: GrProtected
) -> GrBackendTexture
pub unsafe fn createBackendTexture1(
&mut self,
width: c_int,
height: c_int,
arg1: SkColorType,
arg2: GrMipMapped,
arg3: GrRenderable,
arg4: GrProtected
) -> GrBackendTexture
[src]
&mut self,
width: c_int,
height: c_int,
arg1: SkColorType,
arg2: GrMipMapped,
arg3: GrRenderable,
arg4: GrProtected
) -> GrBackendTexture
pub unsafe fn createBackendTexture2(
&mut self,
characterization: *const SkSurfaceCharacterization
) -> GrBackendTexture
[src]
&mut self,
characterization: *const SkSurfaceCharacterization
) -> GrBackendTexture
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]
&mut self,
width: c_int,
height: c_int,
arg1: *const GrBackendFormat,
color: *const SkColor4f,
arg2: GrMipMapped,
arg3: GrRenderable,
arg4: GrProtected
) -> GrBackendTexture
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]
&mut self,
width: c_int,
height: c_int,
arg1: SkColorType,
color: *const SkColor4f,
arg2: GrMipMapped,
arg3: GrRenderable,
arg4: GrProtected
) -> GrBackendTexture
pub unsafe fn createBackendTexture5(
&mut self,
characterization: *const SkSurfaceCharacterization,
color: *const SkColor4f
) -> GrBackendTexture
[src]
&mut self,
characterization: *const SkSurfaceCharacterization,
color: *const SkColor4f
) -> GrBackendTexture
pub unsafe fn deleteBackendTexture(&mut self, arg1: GrBackendTexture)
[src]
pub unsafe fn new(
arg1: GrBackendApi,
arg2: *const GrContextOptions,
contextID: i32
) -> Self
[src]
arg1: GrBackendApi,
arg2: *const GrContextOptions,
contextID: i32
) -> Self
Auto Trait Implementations
impl Send for GrContext
impl Unpin for GrContext
impl Sync for GrContext
impl UnwindSafe for GrContext
impl RefUnwindSafe for GrContext
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,