Struct skia_bindings::SkSurface
source · #[repr(C)]#[repr(align(8))]pub struct SkSurface {
pub _bindgen_opaque_blob: [u64; 4],
}
Fields§
§_bindgen_opaque_blob: [u64; 4]
Implementations§
source§impl SkSurface
impl SkSurface
pub unsafe fn isCompatible( &self, characterization: *const SkSurfaceCharacterization ) -> bool
pub unsafe fn generationID(&mut self) -> u32
pub unsafe fn notifyContentWillChange( &mut self, mode: SkSurface_ContentChangeMode )
pub unsafe fn recordingContext(&self) -> *mut GrRecordingContext
pub unsafe fn recorder(&self) -> *mut skgpu_graphite_Recorder
pub unsafe fn getCanvas(&mut self) -> *mut SkCanvas
pub unsafe fn capabilities(&mut self) -> sk_sp<SkCapabilities>
pub unsafe fn makeSurface( &mut self, imageInfo: *const SkImageInfo ) -> sk_sp<SkSurface>
pub unsafe fn makeSurface1( &mut self, width: c_int, height: c_int ) -> sk_sp<SkSurface>
pub unsafe fn makeImageSnapshot(&mut self) -> sk_sp<SkImage>
pub unsafe fn makeImageSnapshot1( &mut self, bounds: *const SkIRect ) -> sk_sp<SkImage>
pub unsafe fn draw( &mut self, canvas: *mut SkCanvas, x: SkScalar, y: SkScalar, sampling: *const SkSamplingOptions, paint: *const SkPaint )
pub unsafe fn peekPixels(&mut self, pixmap: *mut SkPixmap) -> bool
pub unsafe fn readPixels( &mut self, dst: *const SkPixmap, srcX: c_int, srcY: c_int ) -> bool
pub unsafe fn readPixels1( &mut self, dstInfo: *const SkImageInfo, dstPixels: *mut c_void, dstRowBytes: usize, srcX: c_int, srcY: c_int ) -> bool
pub unsafe fn readPixels2( &mut self, dst: *const SkBitmap, srcX: c_int, srcY: c_int ) -> bool
pub unsafe fn asyncRescaleAndReadPixels( &mut self, info: *const SkImageInfo, srcRect: *const SkIRect, rescaleGamma: SkSurface_RescaleGamma, rescaleMode: SkSurface_RescaleMode, callback: SkSurface_ReadPixelsCallback, context: SkSurface_ReadPixelsContext )
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 )
pub unsafe fn writePixels( &mut self, src: *const SkPixmap, dstX: c_int, dstY: c_int )
pub unsafe fn writePixels1( &mut self, src: *const SkBitmap, dstX: c_int, dstY: c_int )
pub unsafe fn flushAndSubmit(&mut self, syncCpu: bool)
pub unsafe fn resolveMSAA(&mut self)
pub unsafe fn flush( &mut self, access: SkSurface_BackendSurfaceAccess, info: *const GrFlushInfo ) -> GrSemaphoresSubmitted
pub unsafe fn flush1( &mut self, info: *const GrFlushInfo, newState: *const skgpu_MutableTextureState ) -> GrSemaphoresSubmitted
pub unsafe fn flush2(&mut self)
pub unsafe fn wait( &mut self, numSemaphores: c_int, waitSemaphores: *const GrBackendSemaphore, deleteSemaphoresAfterWait: bool ) -> bool
pub unsafe fn characterize( &self, characterization: *mut SkSurfaceCharacterization ) -> bool
pub unsafe fn draw1( &mut self, deferredDisplayList: sk_sp<SkDeferredDisplayList>, xOffset: c_int, yOffset: c_int ) -> bool
pub unsafe fn getBackendTexture( &mut self, backendHandleAccess: SkSurface_BackendHandleAccess ) -> GrBackendTexture
pub unsafe fn getBackendRenderTarget( &mut self, backendHandleAccess: SkSurface_BackendHandleAccess ) -> GrBackendRenderTarget
pub unsafe fn MakeNull(width: c_int, height: c_int) -> sk_sp<SkSurface>
pub unsafe fn MakeRasterDirect( imageInfo: *const SkImageInfo, pixels: *mut c_void, rowBytes: usize, surfaceProps: *const SkSurfaceProps ) -> sk_sp<SkSurface>
pub unsafe fn MakeRasterDirect1( pm: *const SkPixmap, props: *const SkSurfaceProps ) -> sk_sp<SkSurface>
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>
pub unsafe fn MakeRaster( imageInfo: *const SkImageInfo, rowBytes: usize, surfaceProps: *const SkSurfaceProps ) -> sk_sp<SkSurface>
pub unsafe fn MakeRaster1( imageInfo: *const SkImageInfo, props: *const SkSurfaceProps ) -> sk_sp<SkSurface>
pub unsafe fn MakeRasterN32Premul( width: c_int, height: c_int, surfaceProps: *const SkSurfaceProps ) -> sk_sp<SkSurface>
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>
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>
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>
pub unsafe fn MakeRenderTarget1( context: *mut GrRecordingContext, budgeted: skgpu_Budgeted, imageInfo: *const SkImageInfo, sampleCount: c_int, surfaceProps: *const SkSurfaceProps ) -> sk_sp<SkSurface>
pub unsafe fn MakeRenderTarget2( context: *mut GrRecordingContext, budgeted: skgpu_Budgeted, imageInfo: *const SkImageInfo ) -> sk_sp<SkSurface>
pub unsafe fn MakeRenderTarget3( context: *mut GrRecordingContext, characterization: *const SkSurfaceCharacterization, budgeted: skgpu_Budgeted ) -> sk_sp<SkSurface>
pub unsafe fn new( width: c_int, height: c_int, surfaceProps: *const SkSurfaceProps ) -> Self
pub unsafe fn new1( imageInfo: *const SkImageInfo, surfaceProps: *const SkSurfaceProps ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SkSurface
impl Send for SkSurface
impl Sync for SkSurface
impl Unpin for SkSurface
impl UnwindSafe for SkSurface
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