Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private 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 ()
 

Static Public Member Functions

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

Private Member Functions

void setIsOwned () override
 

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:4394

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 }

◆ setIsOwned()

void GrGLSemaphore::setIsOwned ( )
inlineoverrideprivatevirtual

Implements GrSemaphore.

Definition at line 38 of file GrGLSemaphore.h.

38 {
39 fIsOwned = true;
40 }

◆ setSync()

void GrGLSemaphore::setSync ( const GrGLsync sync)
inline

Definition at line 29 of file GrGLSemaphore.h.

29{ fSync = sync; }
GrGLsync sync() const

◆ 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: