Merge "In VuklanManager make sure we have a valid semaphore context before destroying it." into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f560a753fd
@@ -579,7 +579,9 @@ void VulkanManager::swapBuffers(VulkanSurface* surface, const SkRect& dirtyRect)
|
||||
std::lock_guard<std::mutex> lock(mGraphicsQueueMutex);
|
||||
mQueueWaitIdle(mGraphicsQueue);
|
||||
}
|
||||
destroy_semaphore(mDestroySemaphoreContext);
|
||||
if (mDestroySemaphoreContext) {
|
||||
destroy_semaphore(mDestroySemaphoreContext);
|
||||
}
|
||||
|
||||
surface->presentCurrentBuffer(dirtyRect, fenceFd);
|
||||
mSwapSemaphore = VK_NULL_HANDLE;
|
||||
|
||||
Reference in New Issue
Block a user