class GrBackendRenderTarget; class GrBackendTexture; class GrRecordingContext; class SkColorSpace; class GrSurfaceCharacterization; class SkSurfaceProps; enum SkColorType : int; namespace skgpu { enumclass Budgeted : bool;
}
namespace SkSurfaces {
/** Caller data passed to RenderTarget/TextureReleaseProc; may be nullptr. */ using ReleaseContext = void*;
/** User function called when supplied render target may be deleted. */ using RenderTargetReleaseProc = void (*)(ReleaseContext);
/** User function called when supplied texture may be deleted. */ using TextureReleaseProc = void (*)(ReleaseContext);
/** Returns SkSurface on GPU indicated by context. Allocates memory for pixels,basedonthewidth,height,andSkColorTypeinSkImageInfo.budgeted selectswhetherallocationforpixelsistrackedbycontext.imageInfo describesthepixelformatinSkColorType,andtransparencyin SkAlphaType,andcolormatchinginSkColorSpace.
/** Returns SkSurface on GPU indicated by context that is compatible with the provided characterization.budgetedselectswhetherallocationforpixelsistrackedbycontext.
/** Wraps a GPU-backed texture into SkSurface. Caller must ensure the texture is validforthelifetimeofreturnedSkSurface.IfsampleCntgreaterthanzero, createsanintermediateMSAASkSurfacewhichisusedfordrawingbackendTexture.
using BackendHandleAccess = SkSurface::BackendHandleAccess;
/** Retrieves the back-end texture. If SkSurface has no back-end texture, an invalid objectisreturned.CallGrBackendTexture::isValidtodetermineiftheresult isvalid.
/** Retrieves the back-end render target. If SkSurface has no back-end render target, an invalid objectisreturned.CallGrBackendRenderTarget::isValidtodetermineiftheresult isvalid.
/** If a surface is a Ganesh-backed surface, is being drawn with MSAA, and there is a resolve texture,thiscallwillinsertaresolvecommandintothestreamofgpucommands.Inorder fortheresolvetoactuallyhaveaneffect,theworkstillneedstobeflushedandsubmitted totheGPUafterrecordingtheresolvecommand.Ifaresolveisnotsupportedorthe SkSurfacehasnodirtyworktoresolve,thenthiscallisano-op.
namespace skgpu::ganesh { // Clients should strive to call GrDirectContext::flush directly. However, there exist some // places where the GrDirectContext is hard to find, these helpers allow for the flushing of the // provided surface. This is a no-op if the surface is nullptr or not GPU backed.
SK_API GrSemaphoresSubmitted Flush(sk_sp<SkSurface>);
SK_API GrSemaphoresSubmitted Flush(SkSurface*);
SK_API void FlushAndSubmit(sk_sp<SkSurface>);
SK_API void FlushAndSubmit(SkSurface*);
} // namespace skgpu::ganesh
#endif
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-09-30)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.