#include <GrRecordingContext.h>
Definition at line 42 of file GrRecordingContext.h.
◆ ~GrRecordingContext()
GrRecordingContext::~GrRecordingContext |
( |
| ) |
|
|
override |
◆ GrRecordingContext()
Definition at line 50 of file GrRecordingContext.cpp.
53 , fArenas(ddlRecording) {
54 fProxyProvider = std::make_unique<GrProxyProvider>(this);
55}
GrImageContext(sk_sp< GrContextThreadSafeProxy >)
std::unique_ptr< GrAuditTrail > fAuditTrail
◆ abandonContext()
void GrRecordingContext::abandonContext |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ abandoned()
bool GrRecordingContext::abandoned |
( |
| ) |
|
|
inlineoverridevirtual |
◆ addOnFlushCallbackObject()
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 157 of file GrRecordingContext.cpp.
157 {
159}
void addOnFlushCallbackObject(GrOnFlushCallbackObject *)
GrDrawingManager * drawingManager()
◆ arenas()
Arenas GrRecordingContext::arenas |
( |
| ) |
|
|
inlineprotected |
◆ asRecordingContext()
|
inlineoverrideprotectedvirtual |
◆ colorTypeSupportedAsImage()
bool GrRecordingContext::colorTypeSupportedAsImage |
( |
SkColorType |
colorType | ) |
const |
Can a SkImage be created with the given color type.
Definition at line 171 of file GrRecordingContext.cpp.
171 {
176}
static constexpr GrColorType SkColorTypeToGrColorType(SkColorType ct)
static SkColorType colorType(AImageDecoder *decoder, const AImageDecoderHeaderInfo *headerInfo)
GrBackendFormat getDefaultBackendFormat(GrColorType, GrRenderable) const
const GrCaps * caps() const
uint32_t uint32_t * format
◆ colorTypeSupportedAsSurface()
SK_API bool GrRecordingContext::colorTypeSupportedAsSurface |
( |
SkColorType |
colorType | ) |
const |
|
inline |
Definition at line 58 of file GrRecordingContext.h.
58 {
65 return false;
66 }
67
69 }
@ kR16G16B16A16_unorm_SkColorType
pixel with a little endian uint16_t for red, green, blue
@ kA16_unorm_SkColorType
pixel with a little endian uint16_t for alpha
@ kGray_8_SkColorType
pixel with grayscale level in 8-bit byte
@ kA16_float_SkColorType
pixel with a half float for alpha
@ kR16G16_unorm_SkColorType
pixel with a little endian uint16_t for red and green
@ kR16G16_float_SkColorType
pixel with a half float for red and green
SK_API int maxSurfaceSampleCountForColorType(SkColorType colorType) const
◆ destroyDrawingManager()
void GrRecordingContext::destroyDrawingManager |
( |
| ) |
|
|
protected |
◆ detachArenas()
◆ detachProgramData()
◆ drawingManager()
◆ dumpJSON()
◆ getTextBlobRedrawCoordinator() [1/2]
Definition at line 141 of file GrRecordingContext.cpp.
141 {
143}
sktext::gpu::TextBlobRedrawCoordinator * getTextBlobRedrawCoordinator()
GrContextThreadSafeProxyPriv priv()
sk_sp< GrContextThreadSafeProxy > fThreadSafeProxy
◆ getTextBlobRedrawCoordinator() [2/2]
◆ init()
bool GrRecordingContext::init |
( |
| ) |
|
|
overrideprotectedvirtual |
Reimplemented from GrContext_Base.
Definition at line 61 of file GrRecordingContext.cpp.
61 {
63 return false;
64 }
65
68#if defined(GR_TEST_UTILS)
70#endif
71
72 if (this->
options().fDisableDistanceFieldPaths) {
74 }
75
76 bool reduceOpsTaskSplitting = true;
77 if (this->
caps()->avoidReorderingRenderTasks()) {
78 reduceOpsTaskSplitting = false;
80 reduceOpsTaskSplitting = true;
82 reduceOpsTaskSplitting = false;
83 }
85 prcOptions,
86 reduceOpsTaskSplitting));
87 return true;
88}
const GrContextOptions & options() const
bool fAllowPathMaskCaching
bool fAllowPathMaskCaching
GpuPathRenderers fGpuPathRenderers
◆ maxRenderTargetSize()
int GrRecordingContext::maxRenderTargetSize |
( |
| ) |
const |
Gets the maximum supported render target size.
Definition at line 169 of file GrRecordingContext.cpp.
int maxRenderTargetSize() const
◆ maxSurfaceSampleCountForColorType()
Gets the maximum supported sample count for a color type. 1 is returned if only non-MSAA rendering is supported for the color type. 0 is returned if rendering to this color type is not supported at all.
Definition at line 96 of file GrRecordingContext.h.
96 {
98 }
SK_API int maxSurfaceSampleCountForColorType(SkColorType colorType) const
◆ maxTextureSize()
int GrRecordingContext::maxTextureSize |
( |
| ) |
const |
◆ priv() [1/2]
◆ priv() [2/2]
◆ proxyProvider() [1/2]
◆ proxyProvider() [2/2]
◆ recordProgramInfo()
virtual void GrRecordingContext::recordProgramInfo |
( |
const GrProgramInfo * |
| ) |
|
|
inlineprotectedvirtual |
◆ skCapabilities()
◆ stats() [1/2]
Stats * GrRecordingContext::stats |
( |
| ) |
|
|
inlineprotected |
◆ stats() [2/2]
const Stats * GrRecordingContext::stats |
( |
| ) |
const |
|
inlineprotected |
◆ supportsProtectedContent()
bool GrRecordingContext::supportsProtectedContent |
( |
| ) |
const |
Does this context support protected content?
Definition at line 178 of file GrRecordingContext.cpp.
178 {
180}
bool supportsProtectedContent() const
◆ threadSafeCache() [1/2]
◆ threadSafeCache() [2/2]
◆ GrDeferredDisplayList
◆ GrDeferredDisplayListPriv
◆ GrRecordingContextPriv
◆ fAuditTrail
std::unique_ptr<GrAuditTrail> GrRecordingContext::fAuditTrail |
|
protected |
◆ fStats
The documentation for this class was generated from the following files: