 |
Skia
2D Graphics Library
|
Go to the documentation of this file.
8 #ifndef GrBackendSemaphore_DEFINED
9 #define GrBackendSemaphore_DEFINED
13 #include "include/gpu/gl/GrGLTypes.h"
14 #include "include/gpu/mtl/GrMtlTypes.h"
15 #include "include/gpu/vk/GrVkTypes.h"
17 #include "include/gpu/d3d/GrD3DTypesMinimal.h"
41 fIsInitialized =
true;
48 fIsInitialized =
true;
50 fIsInitialized =
false;
61 fIsInitialized =
true;
63 fIsInitialized =
false;
68 void initDirect3D(
const GrD3DFenceInfo& info) {
70 this->assignD3DFenceInfo(info);
71 fIsInitialized =
true;
86 return VK_NULL_HANDLE;
106 bool getD3DFenceInfo(GrD3DFenceInfo* outInfo)
const;
111 void assignD3DFenceInfo(
const GrD3DFenceInfo& info);
120 GrD3DFenceInfo* fD3DFenceInfo;
GrMTLHandle mtlSemaphore() const
Definition: GrBackendSemaphore.h:91
GrGLsync glSync() const
Definition: GrBackendSemaphore.h:77
VkSemaphore vkSemaphore() const
Definition: GrBackendSemaphore.h:84
GrBackendSemaphore()
Definition: GrBackendSemaphore.h:27
void initGL(GrGLsync sync)
Definition: GrBackendSemaphore.h:38
uint64_t mtlValue() const
Definition: GrBackendSemaphore.h:98
Wrapper class for passing into and receiving data from Ganesh about a backend semaphore object.
Definition: GrBackendSemaphore.h:23
GrMTLHandle fMtlEvent
Definition: GrBackendSemaphore.h:118
GrBackendApi
Possible 3D APIs that may be used by Ganesh.
Definition: GrTypes.h:135
VkSemaphore fVkSemaphore
Definition: GrBackendSemaphore.h:117
bool isInitialized() const
Definition: GrBackendSemaphore.h:75
GrGLsync fGLSync
Definition: GrBackendSemaphore.h:116
void initVulkan(VkSemaphore semaphore)
Definition: GrBackendSemaphore.h:44
void initMetal(GrMTLHandle event, uint64_t value)
Definition: GrBackendSemaphore.h:56