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
 
SK_API GrBackendFormat defaultBackendFormat (SkColorType ct, GrRenderable renderable) const
 
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 int maxSurfaceSampleCountForColorType (SkColorType) const
 Gets the maximum supported sample count for a color type. More...
 
GrRecordingContextPriv priv ()
 
const GrRecordingContextPriv priv () const
 

Protected Member Functions

 GrRecordingContext (sk_sp< GrContextThreadSafeProxy >)
 
bool init () override
 
void abandonContext () override
 
GrDrawingManager * drawingManager ()
 
void destroyDrawingManager ()
 
Arenas arenas ()
 
OwnedArenas && detachArenas ()
 
virtual void recordProgramInfo (const GrProgramInfo *)
 
virtual void detachProgramData (SkTArray< ProgramData > *)
 
GrTextBlobCache * getTextBlobCache ()
 
const GrTextBlobCache * getTextBlobCache () const
 
GrThreadSafeCache * threadSafeCache ()
 
const GrThreadSafeCache * threadSafeCache () const
 
void addOnFlushCallbackObject (GrOnFlushCallbackObject *)
 Registers an object for flush-related callbacks. More...
 
GrAuditTrail * auditTrail ()
 
GrRecordingContextasRecordingContext () override
 
Statsstats ()
 
const Statsstats () const
 
void dumpJSON (SkJSONWriter *) const
 

Protected Attributes

class GrRecordingContext::Stats fStats
 

Friends

class GrRecordingContextPriv
 
class SkDeferredDisplayList
 
class SkDeferredDisplayListPriv
 

Constructor & Destructor Documentation

◆ ~GrRecordingContext()

GrRecordingContext::~GrRecordingContext ( )
override

◆ GrRecordingContext()

GrRecordingContext::GrRecordingContext ( sk_sp< GrContextThreadSafeProxy )
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

◆ auditTrail()

GrAuditTrail* GrRecordingContext::auditTrail ( )
inlineprotected

◆ 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

◆ defaultBackendFormat()

SK_API GrBackendFormat GrRecordingContext::defaultBackendFormat ( SkColorType  ct,
GrRenderable  renderable 
) const
inline

◆ destroyDrawingManager()

void GrRecordingContext::destroyDrawingManager ( )
protected

◆ detachArenas()

OwnedArenas&& GrRecordingContext::detachArenas ( )
protected

◆ detachProgramData()

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

◆ drawingManager()

GrDrawingManager* GrRecordingContext::drawingManager ( )
protected

◆ dumpJSON()

void GrRecordingContext::dumpJSON ( SkJSONWriter *  ) const
protected

◆ getTextBlobCache() [1/2]

GrTextBlobCache* GrRecordingContext::getTextBlobCache ( )
protected

◆ getTextBlobCache() [2/2]

const GrTextBlobCache* GrRecordingContext::getTextBlobCache ( ) 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  ) const

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

◆ recordProgramInfo()

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

◆ stats() [1/2]

Stats* GrRecordingContext::stats ( )
inlineprotected

◆ stats() [2/2]

const Stats* GrRecordingContext::stats ( ) const
inlineprotected

◆ threadSafeCache() [1/2]

GrThreadSafeCache* GrRecordingContext::threadSafeCache ( )
protected

◆ threadSafeCache() [2/2]

const GrThreadSafeCache* GrRecordingContext::threadSafeCache ( ) const
protected

Friends And Related Function Documentation

◆ GrRecordingContextPriv

friend class GrRecordingContextPriv
friend

◆ SkDeferredDisplayList

friend class SkDeferredDisplayList
friend

◆ SkDeferredDisplayListPriv

friend class SkDeferredDisplayListPriv
friend

Member Data Documentation

◆ fStats

class GrRecordingContext::Stats GrRecordingContext::fStats
protected

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