8#ifndef GrRecordingContextPriv_DEFINED
9#define GrRecordingContextPriv_DEFINED
27class SurfaceFillContext;
79#if defined(GR_TEST_UTILS)
82 class AutoSuppressWarningMessages {
85 ++
fContext->fSuppressWarningMessages;
87 ~AutoSuppressWarningMessages() {
88 --
fContext->fSuppressWarningMessages;
93 void incrSuppressWarningMessages() { ++this->
context()->fSuppressWarningMessages; }
94 void decrSuppressWarningMessages() { --this->
context()->fSuppressWarningMessages; }
98#if defined(GR_TEST_UTILS)
99 if (this->
context()->fSuppressWarningMessages > 0) {
110#if GR_GPU_STATS && defined(GR_TEST_UTILS)
111 using DMSAAStats = GrRecordingContext::DMSAAStats;
112 DMSAAStats& dmsaaStats() {
return this->
context()->fDMSAAStats; }
145 std::unique_ptr<skgpu::ganesh::SurfaceContext>
makeSC(
148 std::string_view label,
152 int renderTargetSampleCnt = 1,
161 std::unique_ptr<skgpu::ganesh::SurfaceFillContext>
makeSFC(
163 std::string_view label,
188 std::string_view label);
@ kTopLeft_GrSurfaceOrigin
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
GrContext_Base * fContext
friend class GrImageContextPriv
GrAuditTrail * auditTrail()
void addOnFlushCallbackObject(GrOnFlushCallbackObject *)
GrDrawingManager * drawingManager()
sktext::gpu::SubRunAllocator * recordTimeSubRunAllocator()
static sk_sp< GrRecordingContext > MakeDDL(sk_sp< GrContextThreadSafeProxy >)
GrProxyProvider * proxyProvider()
sktext::gpu::SDFTControl getSDFTControl(bool useSDFTForSmallText) const
GrThreadSafeCache * threadSafeCache()
GrRecordingContextPriv(GrRecordingContext *rContext)
GrRecordingContext::OwnedArenas && detachArenas()
void detachProgramData(skia_private::TArray< GrRecordingContext::ProgramData > *dst)
void recordProgramInfo(const GrProgramInfo *programInfo)
void printWarningMessage(const char *msg) const
std::unique_ptr< skgpu::ganesh::SurfaceFillContext > makeSFCFromBackendTexture(GrColorInfo, const GrBackendTexture &, int sampleCount, GrSurfaceOrigin, sk_sp< skgpu::RefCntedCallback > releaseHelper)
std::unique_ptr< skgpu::ganesh::SurfaceFillContext > makeSFCWithFallback(GrImageInfo, SkBackingFit, int sampleCount, skgpu::Mipmapped, skgpu::Protected, GrSurfaceOrigin=kTopLeft_GrSurfaceOrigin, skgpu::Budgeted=skgpu::Budgeted::kYes)
void moveRenderTasksToDDL(GrDeferredDisplayList *)
const GrProxyProvider * proxyProvider() const
GrRecordingContext::Arenas arenas()
const GrRecordingContext * context() const
sktext::gpu::TextBlobRedrawCoordinator * getTextBlobCache()
std::unique_ptr< skgpu::ganesh::SurfaceContext > makeSC(GrSurfaceProxyView readView, const GrColorInfo &)
GrRecordingContext * context()
std::unique_ptr< skgpu::ganesh::SurfaceFillContext > makeSFC(GrImageInfo, std::string_view label, SkBackingFit=SkBackingFit::kExact, int sampleCount=1, skgpu::Mipmapped=skgpu::Mipmapped::kNo, skgpu::Protected=skgpu::Protected::kNo, GrSurfaceOrigin=kTopLeft_GrSurfaceOrigin, skgpu::Budgeted=skgpu::Budgeted::kYes)
SkArenaAlloc * recordTimeAllocator()
sk_sp< skgpu::ganesh::Device > createDevice(GrColorType, sk_sp< GrSurfaceProxy >, sk_sp< SkColorSpace >, GrSurfaceOrigin, const SkSurfaceProps &, skgpu::ganesh::Device::InitContents)
GrRecordingContext::Stats * stats()
SkArenaAlloc * recordTimeAllocator()
sktext::gpu::SubRunAllocator * recordTimeSubRunAllocator()
GrThreadSafeCache * threadSafeCache()
GrRecordingContextPriv priv()
virtual void detachProgramData(skia_private::TArray< ProgramData > *)
sktext::gpu::TextBlobRedrawCoordinator * getTextBlobRedrawCoordinator()
OwnedArenas && detachArenas()
class GrRecordingContext::Stats fStats
GrDrawingManager * drawingManager()
virtual void recordProgramInfo(const GrProgramInfo *)
GrProxyProvider * proxyProvider()
friend class GrRecordingContextPriv
std::unique_ptr< GrAuditTrail > fAuditTrail