Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
skgpu::graphite::BackendSemaphore Class Reference

#include <BackendSemaphore.h>

Public Member Functions

 BackendSemaphore ()
 
 BackendSemaphore (const BackendSemaphore &)
 
 ~BackendSemaphore ()
 
BackendSemaphoreoperator= (const BackendSemaphore &)
 
bool isValid () const
 
BackendApi backend () const
 

Detailed Description

Definition at line 24 of file BackendSemaphore.h.

Constructor & Destructor Documentation

◆ BackendSemaphore() [1/2]

skgpu::graphite::BackendSemaphore::BackendSemaphore ( )
default

◆ BackendSemaphore() [2/2]

skgpu::graphite::BackendSemaphore::BackendSemaphore ( const BackendSemaphore that)

Definition at line 16 of file BackendSemaphore.cpp.

16 {
17 *this = that;
18}

◆ ~BackendSemaphore()

skgpu::graphite::BackendSemaphore::~BackendSemaphore ( )
default

Member Function Documentation

◆ backend()

BackendApi skgpu::graphite::BackendSemaphore::backend ( ) const
inline

Definition at line 43 of file BackendSemaphore.h.

43{ return fBackend; }

◆ isValid()

bool skgpu::graphite::BackendSemaphore::isValid ( ) const
inline

Definition at line 42 of file BackendSemaphore.h.

42{ return fIsValid; }

◆ operator=()

BackendSemaphore & skgpu::graphite::BackendSemaphore::operator= ( const BackendSemaphore that)

Definition at line 20 of file BackendSemaphore.cpp.

20 {
21 if (!that.isValid()) {
22 fIsValid = false;
23 return *this;
24 }
25 SkASSERT(!this->isValid() || this->backend() == that.backend());
26 fIsValid = true;
27 fBackend = that.fBackend;
28
29 switch (that.backend()) {
30#ifdef SK_DAWN
32 SK_ABORT("Unsupported Backend");
33#endif
34 #ifdef SK_METAL
36 fMtlEvent = that.fMtlEvent;
37 fMtlValue = that.fMtlValue;
38 break;
39#endif
40#ifdef SK_VULKAN
42 fVkSemaphore = that.fVkSemaphore;
43 break;
44#endif
45 default:
46 SK_ABORT("Unsupported Backend");
47 }
48 return *this;
49}
#define SK_ABORT(message,...)
Definition SkAssert.h:70
#define SkASSERT(cond)
Definition SkAssert.h:116

Member Data Documentation

◆ fEnsureUnionNonEmpty

void* skgpu::graphite::BackendSemaphore::fEnsureUnionNonEmpty

Definition at line 69 of file BackendSemaphore.h.


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