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

#include <GrBaseContextPriv.h>

Inheritance diagram for GrBaseContextPriv:
GrImageContextPriv GrRecordingContextPriv GrDirectContextPriv

Public Member Functions

GrContext_Basecontext ()
 
const GrContext_Basecontext () const
 
uint32_t contextID () const
 
bool matches (GrContext_Base *candidate) const
 
const GrContextOptionsoptions () const
 
const GrCapscaps () const
 
sk_sp< const GrCapsrefCaps () const
 
GrImageContextasImageContext ()
 
GrRecordingContextasRecordingContext ()
 
GrDirectContextasDirectContext ()
 
GrContextOptions::ShaderErrorHandlergetShaderErrorHandler () const
 

Protected Member Functions

 GrBaseContextPriv (GrContext_Base *context)
 

Protected Attributes

GrContext_BasefContext
 

Friends

class GrContext_Base
 

Detailed Description

Class that exposes methods on GrContext_Base that are only intended for use internal to Skia. This class is purely a privileged window into GrContext_Base. It should never have additional data members or virtual methods.

Definition at line 17 of file GrBaseContextPriv.h.

Constructor & Destructor Documentation

◆ GrBaseContextPriv()

GrBaseContextPriv::GrBaseContextPriv ( GrContext_Base context)
inlineexplicitprotected

Definition at line 38 of file GrBaseContextPriv.h.

38: fContext(context) {}
GrContext_Base * fContext
GrContext_Base * context()

Member Function Documentation

◆ asDirectContext()

GrDirectContext * GrBaseContextPriv::asDirectContext ( )
inline

Definition at line 33 of file GrBaseContextPriv.h.

33{ return this->context()->asDirectContext(); }
virtual GrDirectContext * asDirectContext()

◆ asImageContext()

GrImageContext * GrBaseContextPriv::asImageContext ( )
inline

Definition at line 31 of file GrBaseContextPriv.h.

31{ return this->context()->asImageContext(); }
virtual GrImageContext * asImageContext()

◆ asRecordingContext()

GrRecordingContext * GrBaseContextPriv::asRecordingContext ( )
inline

Definition at line 32 of file GrBaseContextPriv.h.

32{ return this->context()->asRecordingContext(); }
virtual GrRecordingContext * asRecordingContext()

◆ caps()

const GrCaps * GrBaseContextPriv::caps ( ) const
inline

Definition at line 28 of file GrBaseContextPriv.h.

28{ return this->context()->caps(); }
const GrCaps * caps() const

◆ context() [1/2]

GrContext_Base * GrBaseContextPriv::context ( )
inline

Definition at line 19 of file GrBaseContextPriv.h.

19{ return fContext; }

◆ context() [2/2]

const GrContext_Base * GrBaseContextPriv::context ( ) const
inline

Definition at line 20 of file GrBaseContextPriv.h.

20{ return fContext; }

◆ contextID()

uint32_t GrBaseContextPriv::contextID ( ) const
inline

Definition at line 22 of file GrBaseContextPriv.h.

22{ return this->context()->contextID(); }
uint32_t contextID() const

◆ getShaderErrorHandler()

GrContextOptions::ShaderErrorHandler * GrBaseContextPriv::getShaderErrorHandler ( ) const

Definition at line 64 of file GrContext_Base.cpp.

64 {
65 const GrContextOptions& options(this->options());
68}
const GrContextOptions & options() const
ShaderErrorHandler * DefaultShaderErrorHandler()
ShaderErrorHandler * fShaderErrorHandler

◆ matches()

bool GrBaseContextPriv::matches ( GrContext_Base candidate) const
inline

Definition at line 24 of file GrBaseContextPriv.h.

24{ return this->context()->matches(candidate); }
bool matches(GrContext_Base *candidate) const

◆ options()

const GrContextOptions & GrBaseContextPriv::options ( ) const
inline

Definition at line 26 of file GrBaseContextPriv.h.

26{ return this->context()->options(); }
const GrContextOptions & options() const

◆ refCaps()

sk_sp< const GrCaps > GrBaseContextPriv::refCaps ( ) const

Definition at line 60 of file GrContext_Base.cpp.

60 {
61 return this->context()->refCaps();
62}
sk_sp< const GrCaps > refCaps() const

Friends And Related Function Documentation

◆ GrContext_Base

friend class GrContext_Base
friend

Definition at line 49 of file GrBaseContextPriv.h.

Member Data Documentation

◆ fContext

GrContext_Base* GrBaseContextPriv::fContext
protected

Definition at line 40 of file GrBaseContextPriv.h.


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