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

Fields§

§_bindgen_opaque_blob: [u64; 4]

Implementations§

source§

impl SkSurface

source

pub unsafe fn isCompatible( &self, characterization: *const SkSurfaceCharacterization ) -> bool

source

pub unsafe fn generationID(&mut self) -> u32

source

pub unsafe fn notifyContentWillChange( &mut self, mode: SkSurface_ContentChangeMode )

source

pub unsafe fn recordingContext(&self) -> *mut GrRecordingContext

source

pub unsafe fn recorder(&self) -> *mut skgpu_graphite_Recorder

source

pub unsafe fn getCanvas(&mut self) -> *mut SkCanvas

source

pub unsafe fn capabilities(&mut self) -> sk_sp<SkCapabilities>

source

pub unsafe fn makeSurface( &mut self, imageInfo: *const SkImageInfo ) -> sk_sp<SkSurface>

source

pub unsafe fn makeSurface1( &mut self, width: c_int, height: c_int ) -> sk_sp<SkSurface>

source

pub unsafe fn makeImageSnapshot(&mut self) -> sk_sp<SkImage>

source

pub unsafe fn makeImageSnapshot1( &mut self, bounds: *const SkIRect ) -> sk_sp<SkImage>

source

pub unsafe fn draw( &mut self, canvas: *mut SkCanvas, x: SkScalar, y: SkScalar, sampling: *const SkSamplingOptions, paint: *const SkPaint )

source

pub unsafe fn peekPixels(&mut self, pixmap: *mut SkPixmap) -> bool

source

pub unsafe fn readPixels( &mut self, dst: *const SkPixmap, srcX: c_int, srcY: c_int ) -> bool

source

pub unsafe fn readPixels1( &mut self, dstInfo: *const SkImageInfo, dstPixels: *mut c_void, dstRowBytes: usize, srcX: c_int, srcY: c_int ) -> bool

source

pub unsafe fn readPixels2( &mut self, dst: *const SkBitmap, srcX: c_int, srcY: c_int ) -> bool

source

pub unsafe fn asyncRescaleAndReadPixels( &mut self, info: *const SkImageInfo, srcRect: *const SkIRect, rescaleGamma: SkSurface_RescaleGamma, rescaleMode: SkSurface_RescaleMode, callback: SkSurface_ReadPixelsCallback, context: SkSurface_ReadPixelsContext )

source

pub unsafe fn asyncRescaleAndReadPixelsYUV420( &mut self, yuvColorSpace: SkYUVColorSpace, dstColorSpace: sk_sp<SkColorSpace>, srcRect: *const SkIRect, dstSize: *const SkISize, rescaleGamma: SkSurface_RescaleGamma, rescaleMode: SkSurface_RescaleMode, callback: SkSurface_ReadPixelsCallback, context: SkSurface_ReadPixelsContext )

source

pub unsafe fn writePixels( &mut self, src: *const SkPixmap, dstX: c_int, dstY: c_int )

source

pub unsafe fn writePixels1( &mut self, src: *const SkBitmap, dstX: c_int, dstY: c_int )

source

pub unsafe fn flushAndSubmit(&mut self, syncCpu: bool)

source

pub unsafe fn resolveMSAA(&mut self)

source

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

source

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

source

pub unsafe fn flush2(&mut self)

source

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

source

pub unsafe fn characterize( &self, characterization: *mut SkSurfaceCharacterization ) -> bool

source

pub unsafe fn draw1( &mut self, deferredDisplayList: sk_sp<SkDeferredDisplayList>, xOffset: c_int, yOffset: c_int ) -> bool

source

pub unsafe fn getBackendTexture( &mut self, backendHandleAccess: SkSurface_BackendHandleAccess ) -> GrBackendTexture

source

pub unsafe fn getBackendRenderTarget( &mut self, backendHandleAccess: SkSurface_BackendHandleAccess ) -> GrBackendRenderTarget

source

pub unsafe fn MakeNull(width: c_int, height: c_int) -> sk_sp<SkSurface>

source

pub unsafe fn MakeRasterDirect( imageInfo: *const SkImageInfo, pixels: *mut c_void, rowBytes: usize, surfaceProps: *const SkSurfaceProps ) -> sk_sp<SkSurface>

source

pub unsafe fn MakeRasterDirect1( pm: *const SkPixmap, props: *const SkSurfaceProps ) -> sk_sp<SkSurface>

source

pub unsafe fn MakeRasterDirectReleaseProc( imageInfo: *const SkImageInfo, pixels: *mut c_void, rowBytes: usize, releaseProc: Option<unsafe extern "C" fn(pixels: *mut c_void, context: *mut c_void)>, context: *mut c_void, surfaceProps: *const SkSurfaceProps ) -> sk_sp<SkSurface>

source

pub unsafe fn MakeRaster( imageInfo: *const SkImageInfo, rowBytes: usize, surfaceProps: *const SkSurfaceProps ) -> sk_sp<SkSurface>

source

pub unsafe fn MakeRaster1( imageInfo: *const SkImageInfo, props: *const SkSurfaceProps ) -> sk_sp<SkSurface>

source

pub unsafe fn MakeRasterN32Premul( width: c_int, height: c_int, surfaceProps: *const SkSurfaceProps ) -> sk_sp<SkSurface>

source

pub unsafe fn MakeFromBackendTexture( context: *mut GrRecordingContext, backendTexture: *const GrBackendTexture, origin: GrSurfaceOrigin, sampleCnt: c_int, colorType: SkColorType, colorSpace: sk_sp<SkColorSpace>, surfaceProps: *const SkSurfaceProps, textureReleaseProc: SkSurface_TextureReleaseProc, releaseContext: SkSurface_ReleaseContext ) -> sk_sp<SkSurface>

source

pub unsafe fn MakeFromBackendRenderTarget( context: *mut GrRecordingContext, backendRenderTarget: *const GrBackendRenderTarget, origin: GrSurfaceOrigin, colorType: SkColorType, colorSpace: sk_sp<SkColorSpace>, surfaceProps: *const SkSurfaceProps, releaseProc: SkSurface_RenderTargetReleaseProc, releaseContext: SkSurface_ReleaseContext ) -> sk_sp<SkSurface>

source

pub unsafe fn MakeRenderTarget( context: *mut GrRecordingContext, budgeted: skgpu_Budgeted, imageInfo: *const SkImageInfo, sampleCount: c_int, surfaceOrigin: GrSurfaceOrigin, surfaceProps: *const SkSurfaceProps, shouldCreateWithMips: bool ) -> sk_sp<SkSurface>

source

pub unsafe fn MakeRenderTarget1( context: *mut GrRecordingContext, budgeted: skgpu_Budgeted, imageInfo: *const SkImageInfo, sampleCount: c_int, surfaceProps: *const SkSurfaceProps ) -> sk_sp<SkSurface>

source

pub unsafe fn MakeRenderTarget2( context: *mut GrRecordingContext, budgeted: skgpu_Budgeted, imageInfo: *const SkImageInfo ) -> sk_sp<SkSurface>

source

pub unsafe fn MakeRenderTarget3( context: *mut GrRecordingContext, characterization: *const SkSurfaceCharacterization, budgeted: skgpu_Budgeted ) -> sk_sp<SkSurface>

source

pub unsafe fn new( width: c_int, height: c_int, surfaceProps: *const SkSurfaceProps ) -> Self

source

pub unsafe fn new1( imageInfo: *const SkImageInfo, surfaceProps: *const SkSurfaceProps ) -> Self

Trait Implementations§

source§

impl Clone for SkSurface

source§

fn clone(&self) -> SkSurface

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 SkSurface

source§

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

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

impl Copy for SkSurface

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.