Struct skia_bindings::GrDirectContext
source · #[repr(C)]#[repr(align(8))]pub struct GrDirectContext {
pub _bindgen_opaque_blob: [u64; 22],
}
Fields§
§_bindgen_opaque_blob: [u64; 22]
Implementations§
source§impl GrDirectContext
impl GrDirectContext
pub unsafe fn MakeGL( arg1: sk_sp<GrGLInterface>, arg2: *const GrContextOptions ) -> sk_sp<GrDirectContext>
pub unsafe fn MakeGL1(arg1: sk_sp<GrGLInterface>) -> sk_sp<GrDirectContext>
pub unsafe fn MakeGL2(arg1: *const GrContextOptions) -> sk_sp<GrDirectContext>
pub unsafe fn MakeGL3() -> sk_sp<GrDirectContext>
pub unsafe fn MakeMock( arg1: *const GrMockOptions, arg2: *const GrContextOptions ) -> sk_sp<GrDirectContext>
pub unsafe fn MakeMock1(arg1: *const GrMockOptions) -> sk_sp<GrDirectContext>
pub unsafe fn resetContext(&mut self, state: u32)
pub unsafe fn resetGLTextureBindings(&mut self)
pub unsafe fn threadSafeProxy(&mut self) -> sk_sp<GrContextThreadSafeProxy>
pub unsafe fn oomed(&mut self) -> bool
pub unsafe fn releaseResourcesAndAbandonContext(&mut self)
pub unsafe fn getResourceCacheLimits( &self, maxResources: *mut c_int, maxResourceBytes: *mut usize )
pub unsafe fn getResourceCacheLimit(&self) -> usize
pub unsafe fn getResourceCacheUsage( &self, resourceCount: *mut c_int, resourceBytes: *mut usize )
pub unsafe fn getResourceCachePurgeableBytes(&self) -> usize
pub unsafe fn setResourceCacheLimits( &mut self, maxResources: c_int, maxResourceBytes: usize )
pub unsafe fn setResourceCacheLimit(&mut self, maxResourceBytes: usize)
pub unsafe fn freeGpuResources(&mut self)
pub unsafe fn performDeferredCleanup( &mut self, msNotUsed: std_chrono_milliseconds, scratchResourcesOnly: bool )
pub unsafe fn purgeUnlockedResources( &mut self, bytesToPurge: usize, preferScratchResources: bool )
pub unsafe fn purgeUnlockedResources1(&mut self, scratchResourcesOnly: bool)
pub unsafe fn wait( &mut self, numSemaphores: c_int, waitSemaphores: *const GrBackendSemaphore, deleteSemaphoresAfterWait: bool ) -> bool
pub unsafe fn flush( &mut self, info: *const GrFlushInfo ) -> GrSemaphoresSubmitted
pub unsafe fn flush1( &mut self, image: sk_sp<SkImage>, info: *const GrFlushInfo ) -> GrSemaphoresSubmitted
pub unsafe fn flush2(&mut self, image: sk_sp<SkImage>)
pub unsafe fn flushAndSubmit(&mut self, image: sk_sp<SkImage>)
pub unsafe fn submit(&mut self, syncCpu: bool) -> bool
pub unsafe fn checkAsyncWorkCompletion(&mut self)
pub unsafe fn dumpMemoryStatistics( &self, traceMemoryDump: *mut SkTraceMemoryDump )
pub unsafe fn supportsDistanceFieldText(&self) -> bool
pub unsafe fn storeVkPipelineCacheData(&mut self)
pub unsafe fn createBackendTexture( &mut self, width: c_int, height: c_int, arg1: *const GrBackendFormat, arg2: GrMipmapped, arg3: GrRenderable, arg4: GrProtected, label: std_string_view ) -> GrBackendTexture
pub unsafe fn createBackendTexture1( &mut self, width: c_int, height: c_int, arg1: SkColorType, arg2: GrMipmapped, arg3: GrRenderable, arg4: GrProtected, label: std_string_view ) -> GrBackendTexture
pub unsafe fn createBackendTexture2( &mut self, width: c_int, height: c_int, arg1: *const GrBackendFormat, color: *const SkColor4f, arg2: GrMipmapped, arg3: GrRenderable, arg4: GrProtected, finishedProc: GrGpuFinishedProc, finishedContext: GrGpuFinishedContext, label: std_string_view ) -> GrBackendTexture
pub unsafe fn createBackendTexture3( &mut self, width: c_int, height: c_int, arg1: SkColorType, color: *const SkColor4f, arg2: GrMipmapped, arg3: GrRenderable, arg4: GrProtected, finishedProc: GrGpuFinishedProc, finishedContext: GrGpuFinishedContext, label: std_string_view ) -> GrBackendTexture
pub unsafe fn createBackendTexture4( &mut self, srcData: *const SkPixmap, numLevels: c_int, arg1: GrSurfaceOrigin, arg2: GrRenderable, arg3: GrProtected, finishedProc: GrGpuFinishedProc, finishedContext: GrGpuFinishedContext, label: std_string_view ) -> GrBackendTexture
pub unsafe fn createBackendTexture5( &mut self, srcData: *const SkPixmap, textureOrigin: GrSurfaceOrigin, renderable: GrRenderable, isProtected: GrProtected, finishedProc: GrGpuFinishedProc, finishedContext: GrGpuFinishedContext, label: std_string_view ) -> GrBackendTexture
pub unsafe fn createBackendTexture6( &mut self, srcData: *const SkPixmap, numLevels: c_int, renderable: GrRenderable, isProtected: GrProtected, finishedProc: GrGpuFinishedProc, finishedContext: GrGpuFinishedContext, label: std_string_view ) -> GrBackendTexture
pub unsafe fn createBackendTexture7( &mut self, srcData: *const SkPixmap, renderable: GrRenderable, isProtected: GrProtected, finishedProc: GrGpuFinishedProc, finishedContext: GrGpuFinishedContext, label: std_string_view ) -> GrBackendTexture
pub unsafe fn updateBackendTexture( &mut self, arg1: *const GrBackendTexture, color: *const SkColor4f, finishedProc: GrGpuFinishedProc, finishedContext: GrGpuFinishedContext ) -> bool
pub unsafe fn updateBackendTexture1( &mut self, arg1: *const GrBackendTexture, skColorType: SkColorType, color: *const SkColor4f, finishedProc: GrGpuFinishedProc, finishedContext: GrGpuFinishedContext ) -> bool
pub unsafe fn updateBackendTexture2( &mut self, arg1: *const GrBackendTexture, srcData: *const SkPixmap, numLevels: c_int, arg2: GrSurfaceOrigin, finishedProc: GrGpuFinishedProc, finishedContext: GrGpuFinishedContext ) -> bool
pub unsafe fn updateBackendTexture3( &mut self, texture: *const GrBackendTexture, srcData: *const SkPixmap, numLevels: c_int, finishedProc: GrGpuFinishedProc, finishedContext: GrGpuFinishedContext ) -> bool
pub unsafe fn createCompressedBackendTexture( &mut self, width: c_int, height: c_int, arg1: *const GrBackendFormat, color: *const SkColor4f, arg2: GrMipmapped, arg3: GrProtected, finishedProc: GrGpuFinishedProc, finishedContext: GrGpuFinishedContext ) -> GrBackendTexture
pub unsafe fn createCompressedBackendTexture1( &mut self, width: c_int, height: c_int, arg1: SkTextureCompressionType, color: *const SkColor4f, arg2: GrMipmapped, arg3: GrProtected, finishedProc: GrGpuFinishedProc, finishedContext: GrGpuFinishedContext ) -> GrBackendTexture
pub unsafe fn createCompressedBackendTexture2( &mut self, width: c_int, height: c_int, arg1: *const GrBackendFormat, data: *const c_void, dataSize: usize, arg2: GrMipmapped, arg3: GrProtected, finishedProc: GrGpuFinishedProc, finishedContext: GrGpuFinishedContext ) -> GrBackendTexture
pub unsafe fn createCompressedBackendTexture3( &mut self, width: c_int, height: c_int, arg1: SkTextureCompressionType, data: *const c_void, dataSize: usize, arg2: GrMipmapped, arg3: GrProtected, finishedProc: GrGpuFinishedProc, finishedContext: GrGpuFinishedContext ) -> GrBackendTexture
pub unsafe fn updateCompressedBackendTexture( &mut self, arg1: *const GrBackendTexture, color: *const SkColor4f, finishedProc: GrGpuFinishedProc, finishedContext: GrGpuFinishedContext ) -> bool
pub unsafe fn updateCompressedBackendTexture1( &mut self, arg1: *const GrBackendTexture, data: *const c_void, dataSize: usize, finishedProc: GrGpuFinishedProc, finishedContext: GrGpuFinishedContext ) -> bool
pub unsafe fn setBackendTextureState( &mut self, arg1: *const GrBackendTexture, arg2: *const skgpu_MutableTextureState, previousState: *mut skgpu_MutableTextureState, finishedProc: GrGpuFinishedProc, finishedContext: GrGpuFinishedContext ) -> bool
pub unsafe fn setBackendRenderTargetState( &mut self, arg1: *const GrBackendRenderTarget, arg2: *const skgpu_MutableTextureState, previousState: *mut skgpu_MutableTextureState, finishedProc: GrGpuFinishedProc, finishedContext: GrGpuFinishedContext ) -> bool
pub unsafe fn deleteBackendTexture(&mut self, arg1: GrBackendTexture)
pub unsafe fn precompileShader( &mut self, key: *const SkData, data: *const SkData ) -> bool
pub unsafe fn onGetSmallPathAtlasMgr( &mut self ) -> *mut skgpu_ganesh_SmallPathAtlasMgr
pub unsafe fn new( backend: GrBackendApi, options: *const GrContextOptions ) -> Self
Trait Implementations§
source§impl Clone for GrDirectContext
impl Clone for GrDirectContext
source§fn clone(&self) -> GrDirectContext
fn clone(&self) -> GrDirectContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GrDirectContext
impl Debug for GrDirectContext
impl Copy for GrDirectContext
Auto Trait Implementations§
impl RefUnwindSafe for GrDirectContext
impl Send for GrDirectContext
impl Sync for GrDirectContext
impl Unpin for GrDirectContext
impl UnwindSafe for GrDirectContext
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more