Revert "Fix semaphore support check on GrDirectContext::wait"

This reverts commit 671177905d.

Reason for revert: breaking chrome dawn test, most likely chrome bug

Original change's description:
> Fix semaphore support check on GrDirectContext::wait
>
> Change-Id: Ifce5346b513b0caa291333c80effda7901bfb0c5
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/403236
> Reviewed-by: Brian Salomon <bsalomon@google.com>
> Commit-Queue: Greg Daniel <egdaniel@google.com>

TBR=egdaniel@google.com,bsalomon@google.com

Change-Id: I6248850376ca1d0236b6f44d049bf65f3f8e9127
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/403697
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
This commit is contained in:
Greg Daniel 2021-05-03 18:47:31 +00:00 committed by Skia Commit-Bot
parent 80ba617cab
commit 4ecc0f43f2

View File

@ -351,7 +351,7 @@ void GrDirectContext::purgeUnlockedResources(size_t bytesToPurge, bool preferScr
////////////////////////////////////////////////////////////////////////////////
bool GrDirectContext::wait(int numSemaphores, const GrBackendSemaphore waitSemaphores[],
bool deleteSemaphoresAfterWait) {
if (!fGpu || !fGpu->caps()->semaphoreSupport()) {
if (!fGpu || fGpu->caps()->semaphoreSupport()) {
return false;
}
GrWrapOwnership ownership =