Skip to main content

GrDirectContext

Struct GrDirectContext 

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

Fields§

§_bindgen_opaque_blob: [u64; 24]

Implementations§

Source§

impl 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 isDeviceLost(&mut self) -> bool

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, opts: GrPurgeResourceOptions, )

Source

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

Source

pub unsafe fn purgeUnlockedResources1(&mut self, opts: GrPurgeResourceOptions)

Source

pub unsafe fn supportedGpuStats(&self) -> skgpu_GpuStatsFlags

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: *const sk_sp<SkImage>, info: *const GrFlushInfo, ) -> GrSemaphoresSubmitted

Source

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

Source

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

Source

pub unsafe fn flush3( &mut self, surface: *mut SkSurface, access: SkSurfaces_BackendSurfaceAccess, info: *const GrFlushInfo, ) -> GrSemaphoresSubmitted

Source

pub unsafe fn flush4( &mut self, surface: *mut SkSurface, info: *const GrFlushInfo, newState: *const skgpu_MutableTextureState, ) -> GrSemaphoresSubmitted

Source

pub unsafe fn flushAndSubmit1( &mut self, surface: *mut SkSurface, sync: GrSyncCpu, )

Source

pub unsafe fn flush5(&mut self, surface: *mut SkSurface)

Source

pub unsafe fn submit(&mut self, arg1: *const GrSubmitInfo) -> 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 canDetectNewVkPipelineCacheData(&self) -> bool

Source

pub unsafe fn hasNewVkPipelineCacheData(&self) -> bool

Source

pub unsafe fn storeVkPipelineCacheData(&mut self)

Source

pub unsafe fn storeVkPipelineCacheData1(&mut self, maxSize: usize)

Source

pub unsafe fn createBackendTexture( &mut self, width: c_int, height: c_int, arg1: *const GrBackendFormat, arg2: skgpu_Mipmapped, 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: skgpu_Mipmapped, 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: skgpu_Mipmapped, 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: skgpu_Mipmapped, 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: skgpu_Mipmapped, 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: skgpu_Mipmapped, 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: skgpu_Mipmapped, 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: skgpu_Mipmapped, 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: *const 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, proxy: sk_sp<GrContextThreadSafeProxy>, ) -> Self

Trait Implementations§

Source§

impl Clone for GrDirectContext

Source§

fn clone(&self) -> GrDirectContext

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 T
where 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 T
where T: Clone,

Source§

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 T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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.