Flutter Engine
The Flutter Engine
Public Member Functions | Protected Member Functions | Friends | List of all members
GrImageContext Class Reference

#include <GrImageContext.h>

Inheritance diagram for GrImageContext:
GrContext_Base SkRefCnt SkRefCntBase GrRecordingContext GrDDLContext GrDirectContext

Public Member Functions

 ~GrImageContext () override
 
GrImageContextPriv priv ()
 
const GrImageContextPriv priv () const
 
- Public Member Functions inherited from GrContext_Base
 ~GrContext_Base () override
 
virtual GrDirectContextasDirectContext ()
 
SK_API GrBackendApi backend () const
 
SK_API GrBackendFormat defaultBackendFormat (SkColorType, GrRenderable) const
 
SK_API GrBackendFormat compressedBackendFormat (SkTextureCompressionType) const
 
SK_API int maxSurfaceSampleCountForColorType (SkColorType colorType) const
 
sk_sp< GrContextThreadSafeProxythreadSafeProxy ()
 
GrBaseContextPriv priv ()
 
const GrBaseContextPriv priv () const
 
- Public Member Functions inherited from SkRefCntBase
 SkRefCntBase ()
 
virtual ~SkRefCntBase ()
 
bool unique () const
 
void ref () const
 
void unref () const
 

Protected Member Functions

 GrImageContext (sk_sp< GrContextThreadSafeProxy >)
 
virtual SK_API void abandonContext ()
 
virtual SK_API bool abandoned ()
 
skgpu::SingleOwnersingleOwner () const
 
GrImageContextasImageContext () override
 
- Protected Member Functions inherited from GrContext_Base
 GrContext_Base (sk_sp< GrContextThreadSafeProxy >)
 
virtual bool init ()
 
uint32_t contextID () const
 
bool matches (GrContext_Base *candidate) const
 
const GrContextOptionsoptions () const
 
const GrCapscaps () const
 
sk_sp< const GrCapsrefCaps () const
 
virtual GrImageContextasImageContext ()
 
virtual GrRecordingContextasRecordingContext ()
 

Friends

class GrImageContextPriv
 

Additional Inherited Members

- Protected Attributes inherited from GrContext_Base
sk_sp< GrContextThreadSafeProxyfThreadSafeProxy
 

Detailed Description

Definition at line 22 of file GrImageContext.h.

Constructor & Destructor Documentation

◆ ~GrImageContext()

GrImageContext::~GrImageContext ( )
override

Definition at line 19 of file GrImageContext.cpp.

19{}

◆ GrImageContext()

GrImageContext::GrImageContext ( sk_sp< GrContextThreadSafeProxy proxy)
protected

Definition at line 15 of file GrImageContext.cpp.

16 : GrContext_Base(std::move(proxy)) {
17}
GrContext_Base(sk_sp< GrContextThreadSafeProxy >)

Member Function Documentation

◆ abandonContext()

void GrImageContext::abandonContext ( )
protectedvirtual

Reimplemented in GrDirectContext, GrRecordingContext, and GrDDLContext.

Definition at line 21 of file GrImageContext.cpp.

21 {
23}
GrContextThreadSafeProxyPriv priv()
sk_sp< GrContextThreadSafeProxy > fThreadSafeProxy

◆ abandoned()

bool GrImageContext::abandoned ( )
protectedvirtual

Reimplemented in GrDirectContext, and GrRecordingContext.

Definition at line 25 of file GrImageContext.cpp.

◆ asImageContext()

GrImageContext * GrImageContext::asImageContext ( )
inlineoverrideprotectedvirtual

Reimplemented from GrContext_Base.

Definition at line 41 of file GrImageContext.h.

41{ return this; }

◆ priv() [1/2]

GrImageContextPriv GrImageContext::priv ( )
inline

Definition at line 49 of file GrImageContextPriv.h.

49{ return GrImageContextPriv(this); }
friend class GrImageContextPriv

◆ priv() [2/2]

const GrImageContextPriv GrImageContext::priv ( ) const
inline

Definition at line 51 of file GrImageContextPriv.h.

51 { // NOLINT(readability-const-return-type)
52 return GrImageContextPriv(const_cast<GrImageContext*>(this));
53}

◆ singleOwner()

skgpu::SingleOwner * GrImageContext::singleOwner ( ) const
inlineprotected

This is only useful for debug purposes

Definition at line 39 of file GrImageContext.h.

39{ return &fSingleOwner; }

Friends And Related Function Documentation

◆ GrImageContextPriv

friend class GrImageContextPriv
friend

Definition at line 31 of file GrImageContext.h.


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