Flutter Engine
The Flutter Engine
|
#include <GrRecordingContextPriv.h>
Static Public Member Functions | |
static sk_sp< GrRecordingContext > | MakeDDL (sk_sp< GrContextThreadSafeProxy >) |
Static Public Member Functions inherited from GrImageContextPriv | |
static sk_sp< GrImageContext > | MakeForPromiseImage (sk_sp< GrContextThreadSafeProxy > tsp) |
Protected Member Functions | |
GrRecordingContextPriv (GrRecordingContext *rContext) | |
Protected Member Functions inherited from GrBaseContextPriv | |
GrBaseContextPriv (GrContext_Base *context) | |
Friends | |
class | GrRecordingContext |
Additional Inherited Members | |
Protected Attributes inherited from GrBaseContextPriv | |
GrContext_Base * | fContext |
Class that exposes methods on GrRecordingContext that are only intended for use internal to Skia. This class is purely a privileged window into GrRecordingContext. It should never have additional data members or virtual methods.
Definition at line 33 of file GrRecordingContextPriv.h.
|
inlineexplicitprotected |
Definition at line 216 of file GrRecordingContextPriv.h.
void GrRecordingContextPriv::addOnFlushCallbackObject | ( | GrOnFlushCallbackObject * | onFlushCBObject | ) |
Registers an object for flush-related callbacks. (See GrOnFlushCallbackObject.)
NOTE: the drawing manager tracks this object as a raw pointer; it is up to the caller to ensure its lifetime is tied to that of the context.
Definition at line 20 of file GrRecordingContextPriv.cpp.
|
inline |
Definition at line 49 of file GrRecordingContextPriv.h.
|
inline |
Definition at line 77 of file GrRecordingContextPriv.h.
|
inline |
Definition at line 35 of file GrRecordingContextPriv.h.
|
inline |
Definition at line 36 of file GrRecordingContextPriv.h.
sk_sp< skgpu::ganesh::Device > GrRecordingContextPriv::createDevice | ( | GrColorType | colorType, |
sk_sp< GrSurfaceProxy > | proxy, | ||
sk_sp< SkColorSpace > | colorSpace, | ||
GrSurfaceOrigin | origin, | ||
const SkSurfaceProps & | props, | ||
skgpu::ganesh::Device::InitContents | init | ||
) |
Definition at line 24 of file GrRecordingContextPriv.cpp.
sk_sp< skgpu::ganesh::Device > GrRecordingContextPriv::createDevice | ( | skgpu::Budgeted | budgeted, |
const SkImageInfo & | ii, | ||
SkBackingFit | fit, | ||
int | sampleCount, | ||
skgpu::Mipmapped | mipmapped, | ||
skgpu::Protected | isProtected, | ||
GrSurfaceOrigin | origin, | ||
const SkSurfaceProps & | props, | ||
skgpu::ganesh::Device::InitContents | init | ||
) |
Definition at line 40 of file GrRecordingContextPriv.cpp.
|
inline |
Definition at line 51 of file GrRecordingContextPriv.h.
|
inline |
Definition at line 57 of file GrRecordingContextPriv.h.
|
inline |
Definition at line 43 of file GrRecordingContextPriv.h.
sktext::gpu::SDFTControl GrRecordingContextPriv::getSDFTControl | ( | bool | useSDFTForSmallText | ) | const |
Definition at line 66 of file GrRecordingContextPriv.cpp.
|
inline |
Definition at line 61 of file GrRecordingContextPriv.h.
|
static |
Create a GrRecordingContext without a resource cache
Definition at line 114 of file GrDDLContext.cpp.
std::unique_ptr< skgpu::ganesh::SurfaceContext > GrRecordingContextPriv::makeSC | ( | const GrImageInfo & | info, |
const GrBackendFormat & | format, | ||
std::string_view | label, | ||
SkBackingFit | fit = SkBackingFit::kExact , |
||
GrSurfaceOrigin | origin = kTopLeft_GrSurfaceOrigin , |
||
skgpu::Renderable | renderable = skgpu::Renderable::kNo , |
||
int | renderTargetSampleCnt = 1 , |
||
skgpu::Mipmapped | mipmapped = skgpu::Mipmapped::kNo , |
||
skgpu::Protected | isProtected = skgpu::Protected::kNo , |
||
skgpu::Budgeted | budgeted = skgpu::Budgeted::kYes |
||
) |
Definition at line 121 of file GrRecordingContextPriv.cpp.
std::unique_ptr< skgpu::ganesh::SurfaceContext > GrRecordingContextPriv::makeSC | ( | GrSurfaceProxyView | readView, |
const GrColorInfo & | info | ||
) |
Definition at line 79 of file GrRecordingContextPriv.cpp.
std::unique_ptr< skgpu::ganesh::SurfaceFillContext > GrRecordingContextPriv::makeSFC | ( | GrImageInfo | info, |
std::string_view | label, | ||
SkBackingFit | fit = SkBackingFit::kExact , |
||
int | sampleCount = 1 , |
||
skgpu::Mipmapped | mipmapped = skgpu::Mipmapped::kNo , |
||
skgpu::Protected | isProtected = skgpu::Protected::kNo , |
||
GrSurfaceOrigin | origin = kTopLeft_GrSurfaceOrigin , |
||
skgpu::Budgeted | budgeted = skgpu::Budgeted::kYes |
||
) |
Uses GrImageInfo's color type to pick the default texture format. Will return a SurfaceDrawContext if possible.
Definition at line 160 of file GrRecordingContextPriv.cpp.
std::unique_ptr< skgpu::ganesh::SurfaceFillContext > GrRecordingContextPriv::makeSFC | ( | SkAlphaType | alphaType, |
sk_sp< SkColorSpace > | colorSpace, | ||
SkISize | dimensions, | ||
SkBackingFit | fit, | ||
const GrBackendFormat & | format, | ||
int | sampleCount, | ||
skgpu::Mipmapped | mipmapped, | ||
skgpu::Protected | isProtected, | ||
skgpu::Swizzle | readSwizzle, | ||
skgpu::Swizzle | writeSwizzle, | ||
GrSurfaceOrigin | origin, | ||
skgpu::Budgeted | budgeted, | ||
std::string_view | label | ||
) |
Makes a custom configured SurfaceFillContext where the caller specifies the specific texture format and swizzles. The color type will be kUnknown. Returns a SurfaceDrawContext if possible.
Definition at line 210 of file GrRecordingContextPriv.cpp.
std::unique_ptr< skgpu::ganesh::SurfaceFillContext > GrRecordingContextPriv::makeSFCFromBackendTexture | ( | GrColorInfo | info, |
const GrBackendTexture & | tex, | ||
int | sampleCount, | ||
GrSurfaceOrigin | origin, | ||
sk_sp< skgpu::RefCntedCallback > | releaseHelper | ||
) |
Creates a SurfaceFillContext from an existing GrBackendTexture. The GrColorInfo's color type must be compatible with backend texture's format or this will fail. All formats are considered compatible with kUnknown. Returns a SurfaceDrawContext if possible.
Definition at line 305 of file GrRecordingContextPriv.cpp.
std::unique_ptr< skgpu::ganesh::SurfaceFillContext > GrRecordingContextPriv::makeSFCWithFallback | ( | GrImageInfo | info, |
SkBackingFit | fit, | ||
int | sampleCount, | ||
skgpu::Mipmapped | mipmapped, | ||
skgpu::Protected | isProtected, | ||
GrSurfaceOrigin | origin = kTopLeft_GrSurfaceOrigin , |
||
skgpu::Budgeted | budgeted = skgpu::Budgeted::kYes |
||
) |
Like the above but uses GetFallbackColorTypeAndFormat to find a fallback color type (and compatible format) if the passed GrImageInfo's color type is not renderable.
Definition at line 267 of file GrRecordingContextPriv.cpp.
void GrRecordingContextPriv::moveRenderTasksToDDL | ( | GrDeferredDisplayList * | ddl | ) |
Definition at line 62 of file GrRecordingContextPriv.cpp.
|
inline |
Definition at line 97 of file GrRecordingContextPriv.h.
|
inline |
Definition at line 40 of file GrRecordingContextPriv.h.
|
inline |
Definition at line 41 of file GrRecordingContextPriv.h.
|
inline |
Definition at line 53 of file GrRecordingContextPriv.h.
|
inline |
Definition at line 45 of file GrRecordingContextPriv.h.
|
inline |
Definition at line 46 of file GrRecordingContextPriv.h.
|
inline |
Definition at line 106 of file GrRecordingContextPriv.h.
|
inline |
Definition at line 65 of file GrRecordingContextPriv.h.
|
friend |
Definition at line 226 of file GrRecordingContextPriv.h.