#[repr(C)]
#[repr(align(8))]
pub struct GrDirectContext { pub _bindgen_opaque_blob: [u64; 22], }

Fields§

§_bindgen_opaque_blob: [u64; 22]

Implementations§

source§

impl GrDirectContext

source

pub unsafe fn MakeGL( arg1: sk_sp<GrGLInterface>, arg2: *const GrContextOptions ) -> sk_sp<GrDirectContext>

source

pub unsafe fn MakeGL1(arg1: sk_sp<GrGLInterface>) -> sk_sp<GrDirectContext>

source

pub unsafe fn MakeGL2(arg1: *const GrContextOptions) -> sk_sp<GrDirectContext>

source

pub unsafe fn MakeGL3() -> sk_sp<GrDirectContext>

source

pub unsafe fn MakeMock( arg1: *const GrMockOptions, arg2: *const GrContextOptions ) -> sk_sp<GrDirectContext>

source

pub unsafe fn MakeMock1(arg1: *const GrMockOptions) -> sk_sp<GrDirectContext>

source

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

source

pub unsafe fn resetGLTextureBindings(&mut self)

source

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

source

pub unsafe fn oomed(&mut self) -> bool

source

pub unsafe fn releaseResourcesAndAbandonContext(&mut self)

source

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

source

pub unsafe fn getResourceCacheLimit(&self) -> usize

source

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

source

pub unsafe fn getResourceCachePurgeableBytes(&self) -> usize

source

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

source

pub unsafe fn setResourceCacheLimit(&mut self, maxResourceBytes: usize)

source

pub unsafe fn freeGpuResources(&mut self)

source

pub unsafe fn performDeferredCleanup( &mut self, msNotUsed: std_chrono_milliseconds, scratchResourcesOnly: bool )

source

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

source

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

source

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

source

pub unsafe fn flush( &mut self, info: *const GrFlushInfo ) -> GrSemaphoresSubmitted

source

pub unsafe fn flush1( &mut self, image: sk_sp<SkImage>, info: *const GrFlushInfo ) -> GrSemaphoresSubmitted

source

pub unsafe fn flush2(&mut self, image: sk_sp<SkImage>)

source

pub unsafe fn flushAndSubmit(&mut self, image: sk_sp<SkImage>)

source

pub unsafe fn submit(&mut self, syncCpu: bool) -> bool

source

pub unsafe fn checkAsyncWorkCompletion(&mut self)

source

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

source

pub unsafe fn supportsDistanceFieldText(&self) -> bool

source

pub unsafe fn storeVkPipelineCacheData(&mut self)

source

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

source

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

source

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

source

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

source

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

source

pub unsafe fn createBackendTexture5( &mut self, srcData: *const SkPixmap, textureOrigin: GrSurfaceOrigin, renderable: GrRenderable, isProtected: GrProtected, finishedProc: GrGpuFinishedProc, finishedContext: GrGpuFinishedContext, label: std_string_view ) -> GrBackendTexture

source

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

source

pub unsafe fn createBackendTexture7( &mut self, srcData: *const SkPixmap, renderable: GrRenderable, isProtected: GrProtected, finishedProc: GrGpuFinishedProc, finishedContext: GrGpuFinishedContext, label: std_string_view ) -> GrBackendTexture

source

pub unsafe fn updateBackendTexture( &mut self, arg1: *const GrBackendTexture, color: *const SkColor4f, finishedProc: GrGpuFinishedProc, finishedContext: GrGpuFinishedContext ) -> bool

source

pub unsafe fn updateBackendTexture1( &mut self, arg1: *const GrBackendTexture, skColorType: SkColorType, color: *const SkColor4f, finishedProc: GrGpuFinishedProc, finishedContext: GrGpuFinishedContext ) -> bool

source

pub unsafe fn updateBackendTexture2( &mut self, arg1: *const GrBackendTexture, srcData: *const SkPixmap, numLevels: c_int, arg2: GrSurfaceOrigin, finishedProc: GrGpuFinishedProc, finishedContext: GrGpuFinishedContext ) -> bool

source

pub unsafe fn updateBackendTexture3( &mut self, texture: *const GrBackendTexture, srcData: *const SkPixmap, numLevels: c_int, finishedProc: GrGpuFinishedProc, finishedContext: GrGpuFinishedContext ) -> bool

source

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

source

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

source

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

source

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

source

pub unsafe fn updateCompressedBackendTexture( &mut self, arg1: *const GrBackendTexture, color: *const SkColor4f, finishedProc: GrGpuFinishedProc, finishedContext: GrGpuFinishedContext ) -> bool

source

pub unsafe fn updateCompressedBackendTexture1( &mut self, arg1: *const GrBackendTexture, data: *const c_void, dataSize: usize, finishedProc: GrGpuFinishedProc, finishedContext: GrGpuFinishedContext ) -> bool

source

pub unsafe fn setBackendTextureState( &mut self, arg1: *const GrBackendTexture, arg2: *const skgpu_MutableTextureState, previousState: *mut skgpu_MutableTextureState, finishedProc: GrGpuFinishedProc, finishedContext: GrGpuFinishedContext ) -> bool

source

pub unsafe fn setBackendRenderTargetState( &mut self, arg1: *const GrBackendRenderTarget, arg2: *const skgpu_MutableTextureState, previousState: *mut skgpu_MutableTextureState, finishedProc: GrGpuFinishedProc, finishedContext: GrGpuFinishedContext ) -> bool

source

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

source

pub unsafe fn precompileShader( &mut self, key: *const SkData, data: *const SkData ) -> bool

source

pub unsafe fn onGetSmallPathAtlasMgr( &mut self ) -> *mut skgpu_ganesh_SmallPathAtlasMgr

source

pub unsafe fn new( backend: GrBackendApi, options: *const GrContextOptions ) -> Self

Trait Implementations§

source§

impl Clone for GrDirectContext

source§

fn clone(&self) -> GrDirectContext

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for GrDirectContext

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for GrDirectContext

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.