Skia
2D Graphics Library
GrRecordingContext Class Reference

#include <GrRecordingContext.h>

Inheritance diagram for GrRecordingContext:

Classes

class  Arenas
 
class  OwnedArenas
 
struct  ProgramData
 
class  Stats
 

Public Member Functions

 ~GrRecordingContext () override
 
bool abandoned () override
 Reports whether the GrDirectContext associated with this GrRecordingContext is abandoned. More...
 
SK_API bool colorTypeSupportedAsSurface (SkColorType colorType) const
 
SK_API int maxTextureSize () const
 Gets the maximum supported texture size. More...
 
SK_API int maxRenderTargetSize () const
 Gets the maximum supported render target size. More...
 
SK_API bool colorTypeSupportedAsImage (SkColorType) const
 Can a SkImage be created with the given color type. More...
 
SK_API bool supportsProtectedContent () const
 Does this context support protected content? More...
 
SK_API int maxSurfaceSampleCountForColorType (SkColorType colorType) const
 Gets the maximum supported sample count for a color type. More...
 
SK_API sk_sp< const SkCapabilitiesskCapabilities () const
 
GrRecordingContextPriv priv ()
 
const GrRecordingContextPriv priv () const
 

Protected Member Functions

 GrRecordingContext (sk_sp< GrContextThreadSafeProxy >, bool ddlRecording)
 
bool init () override
 
void abandonContext () override
 
GrDrawingManager * drawingManager ()
 
void destroyDrawingManager ()
 
Arenas arenas ()
 
OwnedArenas && detachArenas ()
 
GrProxyProvider * proxyProvider ()
 
const GrProxyProvider * proxyProvider () const
 
virtual void recordProgramInfo (const GrProgramInfo *)
 
virtual void detachProgramData (skia_private::TArray< ProgramData > *)
 
sktext::gpu::TextBlobRedrawCoordinator * getTextBlobRedrawCoordinator ()
 
const sktext::gpu::TextBlobRedrawCoordinator * getTextBlobRedrawCoordinator () const
 
GrThreadSafeCache * threadSafeCache ()
 
const GrThreadSafeCache * threadSafeCache () const
 
void addOnFlushCallbackObject (GrOnFlushCallbackObject *)
 Registers an object for flush-related callbacks. More...
 
GrRecordingContextasRecordingContext () override
 
Statsstats ()
 
const Statsstats () const
 
void dumpJSON (SkJSONWriter *) const
 

Protected Attributes

class GrRecordingContext::Stats fStats
 
std::unique_ptr< GrAuditTrail > fAuditTrail
 

Friends

class GrRecordingContextPriv
 
class GrDeferredDisplayList
 
class GrDeferredDisplayListPriv
 

Constructor & Destructor Documentation

◆ ~GrRecordingContext()

GrRecordingContext::~GrRecordingContext ( )
override

◆ GrRecordingContext()

GrRecordingContext::GrRecordingContext ( sk_sp< GrContextThreadSafeProxy ,
bool  ddlRecording 
)
protected

Member Function Documentation

◆ abandonContext()

void GrRecordingContext::abandonContext ( )
overrideprotected

◆ abandoned()

bool GrRecordingContext::abandoned ( )
inlineoverride

Reports whether the GrDirectContext associated with this GrRecordingContext is abandoned.

When called on a GrDirectContext it may actively check whether the underlying 3D API device/context has been disconnected before reporting the status. If so, calling this method will transition the GrDirectContext to the abandoned state.

◆ addOnFlushCallbackObject()

void GrRecordingContext::addOnFlushCallbackObject ( GrOnFlushCallbackObject *  )
protected

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.

◆ arenas()

Arenas GrRecordingContext::arenas ( )
inlineprotected

◆ asRecordingContext()

GrRecordingContext* GrRecordingContext::asRecordingContext ( )
inlineoverrideprotected

◆ colorTypeSupportedAsImage()

SK_API bool GrRecordingContext::colorTypeSupportedAsImage ( SkColorType  ) const

Can a SkImage be created with the given color type.

◆ colorTypeSupportedAsSurface()

SK_API bool GrRecordingContext::colorTypeSupportedAsSurface ( SkColorType  colorType) const
inline

◆ destroyDrawingManager()

void GrRecordingContext::destroyDrawingManager ( )
protected

◆ detachArenas()

OwnedArenas&& GrRecordingContext::detachArenas ( )
protected

◆ detachProgramData()

virtual void GrRecordingContext::detachProgramData ( skia_private::TArray< ProgramData > *  )
inlineprotectedvirtual

◆ drawingManager()

GrDrawingManager* GrRecordingContext::drawingManager ( )
protected

◆ dumpJSON()

void GrRecordingContext::dumpJSON ( SkJSONWriter *  ) const
protected

◆ getTextBlobRedrawCoordinator() [1/2]

sktext::gpu::TextBlobRedrawCoordinator* GrRecordingContext::getTextBlobRedrawCoordinator ( )
protected

◆ getTextBlobRedrawCoordinator() [2/2]

const sktext::gpu::TextBlobRedrawCoordinator* GrRecordingContext::getTextBlobRedrawCoordinator ( ) const
protected

◆ init()

bool GrRecordingContext::init ( )
overrideprotected

◆ maxRenderTargetSize()

SK_API int GrRecordingContext::maxRenderTargetSize ( ) const

Gets the maximum supported render target size.

◆ maxSurfaceSampleCountForColorType()

SK_API int GrRecordingContext::maxSurfaceSampleCountForColorType ( SkColorType  colorType) const
inline

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.

◆ maxTextureSize()

SK_API int GrRecordingContext::maxTextureSize ( ) const

Gets the maximum supported texture size.

◆ priv() [1/2]

GrRecordingContextPriv GrRecordingContext::priv ( )

◆ priv() [2/2]

const GrRecordingContextPriv GrRecordingContext::priv ( ) const

◆ proxyProvider() [1/2]

GrProxyProvider* GrRecordingContext::proxyProvider ( )
inlineprotected

◆ proxyProvider() [2/2]

const GrProxyProvider* GrRecordingContext::proxyProvider ( ) const
inlineprotected

◆ recordProgramInfo()

virtual void GrRecordingContext::recordProgramInfo ( const GrProgramInfo *  )
inlineprotectedvirtual

◆ skCapabilities()

SK_API sk_sp<const SkCapabilities> GrRecordingContext::skCapabilities ( ) const

◆ stats() [1/2]

Stats* GrRecordingContext::stats ( )
inlineprotected

◆ stats() [2/2]

const Stats* GrRecordingContext::stats ( ) const
inlineprotected

◆ supportsProtectedContent()

SK_API bool GrRecordingContext::supportsProtectedContent ( ) const

Does this context support protected content?

◆ threadSafeCache() [1/2]

GrThreadSafeCache* GrRecordingContext::threadSafeCache ( )
protected

◆ threadSafeCache() [2/2]

const GrThreadSafeCache* GrRecordingContext::threadSafeCache ( ) const
protected

Friends And Related Function Documentation

◆ GrDeferredDisplayList

friend class GrDeferredDisplayList
friend

◆ GrDeferredDisplayListPriv

friend class GrDeferredDisplayListPriv
friend

◆ GrRecordingContextPriv

friend class GrRecordingContextPriv
friend

Member Data Documentation

◆ fAuditTrail

std::unique_ptr<GrAuditTrail> GrRecordingContext::fAuditTrail
protected

◆ fStats

class GrRecordingContext::Stats GrRecordingContext::fStats
protected

The documentation for this class was generated from the following file: