Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Friends | List of all members
GrContextThreadSafeProxyPriv Class Reference

#include <GrContextThreadSafeProxyPriv.h>

Public Member Functions

void init (sk_sp< const GrCaps >, sk_sp< GrThreadSafePipelineBuilder >) const
 
bool matches (GrContext_Base *candidate) const
 
GrBackend backend () const
 
const GrContextOptionsoptions () const
 
uint32_t contextID () const
 
const GrCapscaps () const
 
sk_sp< const GrCapsrefCaps () const
 
sktext::gpu::TextBlobRedrawCoordinatorgetTextBlobRedrawCoordinator ()
 
const sktext::gpu::TextBlobRedrawCoordinatorgetTextBlobRedrawCoordinator () const
 
GrThreadSafeCachethreadSafeCache ()
 
const GrThreadSafeCachethreadSafeCache () const
 
void abandonContext ()
 
bool abandoned () const
 

Static Public Member Functions

static sk_sp< GrContextThreadSafeProxyMake (GrBackendApi, const GrContextOptions &)
 

Friends

class GrContextThreadSafeProxy
 

Detailed Description

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

Definition at line 22 of file GrContextThreadSafeProxyPriv.h.

Member Function Documentation

◆ abandonContext()

void GrContextThreadSafeProxyPriv::abandonContext ( )
inline

Definition at line 47 of file GrContextThreadSafeProxyPriv.h.

47{ fProxy->abandonContext(); }

◆ abandoned()

bool GrContextThreadSafeProxyPriv::abandoned ( ) const
inline

Definition at line 48 of file GrContextThreadSafeProxyPriv.h.

48{ return fProxy->abandoned(); }

◆ backend()

GrBackend GrContextThreadSafeProxyPriv::backend ( ) const
inline

Definition at line 30 of file GrContextThreadSafeProxyPriv.h.

30{ return fProxy->fBackend; }

◆ caps()

const GrCaps * GrContextThreadSafeProxyPriv::caps ( ) const
inline

Definition at line 34 of file GrContextThreadSafeProxyPriv.h.

34{ return fProxy->fCaps.get(); }
T * get() const
Definition SkRefCnt.h:303

◆ contextID()

uint32_t GrContextThreadSafeProxyPriv::contextID ( ) const
inline

Definition at line 32 of file GrContextThreadSafeProxyPriv.h.

32{ return fProxy->fContextID; }

◆ getTextBlobRedrawCoordinator() [1/2]

sktext::gpu::TextBlobRedrawCoordinator * GrContextThreadSafeProxyPriv::getTextBlobRedrawCoordinator ( )
inline

Definition at line 37 of file GrContextThreadSafeProxyPriv.h.

37 {
38 return fProxy->fTextBlobRedrawCoordinator.get();
39 }

◆ getTextBlobRedrawCoordinator() [2/2]

const sktext::gpu::TextBlobRedrawCoordinator * GrContextThreadSafeProxyPriv::getTextBlobRedrawCoordinator ( ) const
inline

Definition at line 40 of file GrContextThreadSafeProxyPriv.h.

40 {
41 return fProxy->fTextBlobRedrawCoordinator.get();
42 }

◆ init()

void GrContextThreadSafeProxyPriv::init ( sk_sp< const GrCaps caps,
sk_sp< GrThreadSafePipelineBuilder builder 
) const

Definition at line 197 of file GrContextThreadSafeProxy.cpp.

198 {
199 fProxy->init(std::move(caps), std::move(builder));
200}

◆ Make()

sk_sp< GrContextThreadSafeProxy > GrContextThreadSafeProxyPriv::Make ( GrBackendApi  backend,
const GrContextOptions options 
)
static

◆ matches()

bool GrContextThreadSafeProxyPriv::matches ( GrContext_Base candidate) const
inline

Definition at line 26 of file GrContextThreadSafeProxyPriv.h.

26 {
27 return fProxy == candidate->threadSafeProxy().get();
28 }
sk_sp< GrContextThreadSafeProxy > threadSafeProxy()

◆ options()

const GrContextOptions & GrContextThreadSafeProxyPriv::options ( ) const
inline

Definition at line 31 of file GrContextThreadSafeProxyPriv.h.

31{ return fProxy->fOptions; }

◆ refCaps()

sk_sp< const GrCaps > GrContextThreadSafeProxyPriv::refCaps ( ) const
inline

Definition at line 35 of file GrContextThreadSafeProxyPriv.h.

35{ return fProxy->fCaps; }

◆ threadSafeCache() [1/2]

GrThreadSafeCache * GrContextThreadSafeProxyPriv::threadSafeCache ( )
inline

Definition at line 44 of file GrContextThreadSafeProxyPriv.h.

44{ return fProxy->fThreadSafeCache.get(); }

◆ threadSafeCache() [2/2]

const GrThreadSafeCache * GrContextThreadSafeProxyPriv::threadSafeCache ( ) const
inline

Definition at line 45 of file GrContextThreadSafeProxyPriv.h.

45{ return fProxy->fThreadSafeCache.get(); }

Friends And Related Symbol Documentation

◆ GrContextThreadSafeProxy

friend class GrContextThreadSafeProxy
friend

Definition at line 63 of file GrContextThreadSafeProxyPriv.h.


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