Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | List of all members
GrGLSemaphore Class Reference

#include <GrGLSemaphore.h>

Inheritance diagram for GrGLSemaphore:
GrSemaphore

Public Member Functions

 ~GrGLSemaphore () override
 
GrGLsync sync () const
 
void setSync (const GrGLsync &sync)
 
GrBackendSemaphore backendSemaphore () const override
 
- Public Member Functions inherited from GrSemaphore
virtual ~GrSemaphore ()
 
virtual GrBackendSemaphore backendSemaphore () const =0
 

Static Public Member Functions

static std::unique_ptr< GrGLSemaphoreMake (GrGLGpu *gpu, bool isOwned)
 

Detailed Description

Definition at line 20 of file GrGLSemaphore.h.

Constructor & Destructor Documentation

◆ ~GrGLSemaphore()

GrGLSemaphore::~GrGLSemaphore ( )
override

Definition at line 16 of file GrGLSemaphore.cpp.

16 {
17 if (fSync && fIsOwned) {
18 fGpu->deleteSync(fSync);
19 }
20}
void deleteSync(GrGLsync)
Definition: GrGLGpu.cpp:4411

Member Function Documentation

◆ backendSemaphore()

GrBackendSemaphore GrGLSemaphore::backendSemaphore ( ) const
inlineoverridevirtual

Implements GrSemaphore.

Definition at line 31 of file GrGLSemaphore.h.

31 {
32 SK_ABORT("Unsupported");
33 }
#define SK_ABORT(message,...)
Definition: SkAssert.h:70

◆ Make()

static std::unique_ptr< GrGLSemaphore > GrGLSemaphore::Make ( GrGLGpu gpu,
bool  isOwned 
)
inlinestatic

Definition at line 22 of file GrGLSemaphore.h.

22 {
23 return std::unique_ptr<GrGLSemaphore>(new GrGLSemaphore(gpu, isOwned));
24 }

◆ setSync()

void GrGLSemaphore::setSync ( const GrGLsync sync)
inline

Definition at line 29 of file GrGLSemaphore.h.

29{ fSync = sync; }
GrGLsync sync() const
Definition: GrGLSemaphore.h:28

◆ sync()

GrGLsync GrGLSemaphore::sync ( ) const
inline

Definition at line 28 of file GrGLSemaphore.h.

28{ return fSync; }

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