Home
last modified time | relevance | path

Searched refs:fSemaphore (Results 1 – 9 of 9) sorted by relevance

/external/skia/src/core/
DSkSemaphore.cpp14 semaphore_t fSemaphore; member
17 semaphore_create(mach_task_self(), &fSemaphore, SYNC_POLICY_LIFO, 0/*initial count*/); in OSSemaphore()
19 ~OSSemaphore() { semaphore_destroy(mach_task_self(), fSemaphore); } in ~OSSemaphore()
21 void signal(int n) { while (n --> 0) { semaphore_signal(fSemaphore); } } in signal()
22 void wait() { semaphore_wait(fSemaphore); } in wait()
26 HANDLE fSemaphore; member
29 fSemaphore = CreateSemaphore(nullptr /*security attributes, optional*/, in OSSemaphore()
34 ~OSSemaphore() { CloseHandle(fSemaphore); } in ~OSSemaphore()
37 ReleaseSemaphore(fSemaphore, n, nullptr/*returns previous count, optional*/); in signal()
39 void wait() { WaitForSingleObject(fSemaphore, INFINITE/*timeout in ms*/); } in wait()
[all …]
/external/skia/src/gpu/gl/
DGrGLExternalTextureData.cpp19 , fSemaphore(std::move(semaphore)) { in GrGLExternalTextureData()
20 SkASSERT(fSemaphore->unique()); in GrGLExternalTextureData()
21 context->resourceProvider()->releaseOwnershipOfSemaphore(fSemaphore); in GrGLExternalTextureData()
25 context->resourceProvider()->takeOwnershipOfSemaphore(fSemaphore); in attachToContext()
29 context->getGpu()->waitSemaphore(fSemaphore); in attachToContext()
/external/skia/src/gpu/vk/
DGrVkSemaphore.h26 Resource(VkSemaphore semaphore) : INHERITED(), fSemaphore(semaphore) {} in Resource()
30 VkSemaphore semaphore() const { return fSemaphore; } in semaphore()
34 SkDebugf("GrVkSemaphore: %d (%d refs)\n", fSemaphore, this->getRefCnt()); in dumpInfo()
40 VkSemaphore fSemaphore; variable
DGrVkSemaphore.cpp45 DestroySemaphore(gpu->device(), fSemaphore, nullptr)); in freeGPUData()
/external/skia/include/private/
DSkMutex.h22 fSemaphore.wait(); in acquire()
29 fSemaphore.signal(); in release()
37 SkBaseSemaphore fSemaphore{1};
44 ~SkMutex() { fSemaphore.cleanup(); } in ~SkMutex()
/external/skia/src/gpu/ops/
DGrSemaphoreOp.h24 : INHERITED(classId), fSemaphore(std::move(semaphore)) {} in GrSemaphoreOp()
26 sk_sp<GrSemaphore> fSemaphore; variable
DGrSemaphoreOp.cpp28 state->gpu()->insertSemaphore(fSemaphore); in onExecute()
49 state->gpu()->waitSemaphore(fSemaphore); in onExecute()
/external/skia/tests/
DCrossContextImageTest.cpp174 SkSemaphore fSemaphore; member
184 ctx->fSemaphore.signal(); in upload_image_thread_proc()
226 ctx.fSemaphore.wait();
/external/skia/include/gpu/gl/
DGrGLTypes.h131 sk_sp<GrSemaphore> fSemaphore; variable