[][src]Struct skia_bindings::GrSurfaceProxy

#[repr(C)]
pub struct GrSurfaceProxy {
    pub _base: GrIORefProxy,
    pub fSurfaceFlags: GrInternalSurfaceFlags,
    pub fFormat: GrBackendFormat,
    pub fConfig: GrPixelConfig,
    pub fWidth: c_int,
    pub fHeight: c_int,
    pub fOrigin: GrSurfaceOrigin,
    pub fFit: SkBackingFit,
    pub fBudgeted: SkBudgeted,
    pub fUniqueID: GrSurfaceProxy_UniqueID,
    pub fLazyInstantiateCallback: GrSurfaceProxy_LazyInstantiateCallback,
    pub fLazyInstantiationType: GrSurfaceProxy_LazyInstantiationType,
    pub fNeedsClear: bool,
    pub fIgnoredByResourceAllocator: bool,
    pub fGpuMemorySize: usize,
    pub fLastOpList: *mut GrOpList,
}

Fields

_base: GrIORefProxyfSurfaceFlags: GrInternalSurfaceFlagsfFormat: GrBackendFormatfConfig: GrPixelConfigfWidth: c_intfHeight: c_intfOrigin: GrSurfaceOriginfFit: SkBackingFitfBudgeted: SkBudgetedfUniqueID: GrSurfaceProxy_UniqueIDfLazyInstantiateCallback: GrSurfaceProxy_LazyInstantiateCallbackfLazyInstantiationType: GrSurfaceProxy_LazyInstantiationTypefNeedsClear: boolfIgnoredByResourceAllocator: boolfGpuMemorySize: usizefLastOpList: *mut GrOpList

Methods

impl GrSurfaceProxy[src]

pub unsafe fn lazyInstantiationState(&self) -> GrSurfaceProxy_LazyState[src]

pub unsafe fn config(&self) -> GrPixelConfig[src]

pub unsafe fn width(&self) -> c_int[src]

pub unsafe fn height(&self) -> c_int[src]

pub unsafe fn isize(&self) -> SkISize[src]

pub unsafe fn worstCaseWidth(&self) -> c_int[src]

pub unsafe fn worstCaseHeight(&self) -> c_int[src]

pub unsafe fn getBoundsRect(&self) -> SkRect[src]

pub unsafe fn getWorstCaseBoundsRect(&self) -> SkRect[src]

pub unsafe fn origin(&self) -> GrSurfaceOrigin[src]

pub unsafe fn backendFormat(&self) -> *const GrBackendFormat[src]

pub unsafe fn uniqueID(&self) -> GrSurfaceProxy_UniqueID[src]

pub unsafe fn underlyingUniqueID(&self) -> GrSurfaceProxy_UniqueID[src]

pub unsafe fn deinstantiate(&mut self)[src]

pub unsafe fn canSkipResourceAllocator(&self) -> bool[src]

pub unsafe fn isInstantiated(&self) -> bool[src]

pub unsafe fn peekSurface(&self) -> *mut GrSurface[src]

pub unsafe fn peekTexture(&self) -> *mut GrTexture[src]

pub unsafe fn peekRenderTarget(&self) -> *mut GrRenderTarget[src]

pub unsafe fn isBudgeted(&self) -> SkBudgeted[src]

pub unsafe fn readOnly(&self) -> bool[src]

pub unsafe fn setLastOpList(&mut self, opList: *mut GrOpList)[src]

pub unsafe fn getLastOpList(&mut self) -> *mut GrOpList[src]

pub unsafe fn getLastRenderTargetOpList(&mut self) -> *mut GrRenderTargetOpList[src]

pub unsafe fn getLastTextureOpList(&mut self) -> *mut GrTextureOpList[src]

pub unsafe fn gpuMemorySize(&self) -> usize[src]

pub unsafe fn Copy(
    arg1: *mut GrRecordingContext,
    src: *mut GrSurfaceProxy,
    arg2: GrMipMapped,
    srcRect: SkIRect,
    arg3: SkBackingFit,
    arg4: SkBudgeted
) -> sk_sp<GrTextureProxy>
[src]

pub unsafe fn Copy1(
    arg1: *mut GrRecordingContext,
    src: *mut GrSurfaceProxy,
    arg2: GrMipMapped,
    arg3: SkBackingFit,
    arg4: SkBudgeted
) -> sk_sp<GrTextureProxy>
[src]

pub unsafe fn TestCopy(
    context: *mut GrRecordingContext,
    dstDesc: *const GrSurfaceDesc,
    arg1: GrSurfaceOrigin,
    srcProxy: *mut GrSurfaceProxy
) -> sk_sp<GrSurfaceContext>
[src]

pub unsafe fn isWrapped_ForTesting(&self) -> bool[src]

pub unsafe fn priv_(&mut self) -> GrSurfaceProxyPriv[src]

pub unsafe fn priv1(&self) -> GrSurfaceProxyPriv[src]

pub unsafe fn firstRefAccess(&mut self) -> GrSurfaceProxy_FirstRefAccess[src]

pub unsafe fn testingOnly_getFlags(&self) -> GrInternalSurfaceFlags[src]

pub unsafe fn ignoredByResourceAllocator(&self) -> bool[src]

pub unsafe fn setIgnoredByResourceAllocator(&mut self)[src]

pub unsafe fn getProxyRefCnt(&self) -> i32[src]

pub unsafe fn getTotalRefs(&self) -> i32[src]

pub unsafe fn computeScratchKey(&self, arg1: *mut GrScratchKey)[src]

pub unsafe fn assign(&mut self, surface: sk_sp<GrSurface>)[src]

pub unsafe fn createSurfaceImpl(
    &self,
    arg1: *mut GrResourceProvider,
    sampleCnt: c_int,
    needsStencil: bool,
    arg2: GrSurfaceDescFlags,
    arg3: GrMipMapped
) -> sk_sp<GrSurface>
[src]

pub unsafe fn setLazySize(&mut self, width: c_int, height: c_int)[src]

pub unsafe fn instantiateImpl(
    &mut self,
    resourceProvider: *mut GrResourceProvider,
    sampleCnt: c_int,
    needsStencil: bool,
    descFlags: GrSurfaceDescFlags,
    arg1: GrMipMapped,
    arg2: *const GrUniqueKey
) -> bool
[src]

pub unsafe fn new(
    format: *const GrBackendFormat,
    desc: *const GrSurfaceDesc,
    origin: GrSurfaceOrigin,
    fit: SkBackingFit,
    budgeted: SkBudgeted,
    surfaceFlags: GrInternalSurfaceFlags
) -> Self
[src]

pub unsafe fn new1(
    arg1: *mut GrSurfaceProxy_LazyInstantiateCallback,
    arg2: GrSurfaceProxy_LazyInstantiationType,
    format: *const GrBackendFormat,
    arg3: *const GrSurfaceDesc,
    arg4: GrSurfaceOrigin,
    arg5: SkBackingFit,
    arg6: SkBudgeted,
    arg7: GrInternalSurfaceFlags
) -> Self
[src]

pub unsafe fn new2(
    arg1: sk_sp<GrSurface>,
    arg2: GrSurfaceOrigin,
    arg3: SkBackingFit
) -> Self
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]