diff options
author | Kevin Lubick <kjlubick@google.com> | 2023-09-06 10:09:08 -0400 |
---|---|---|
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | 2023-09-06 15:07:43 +0000 |
commit | 99bcee22f87df865c74f9bdfc90ff2219d9b2b91 (patch) | |
tree | 10b472a2de3641b7aa58ff6e29adea5f128a33ef /fuzz | |
parent | 8ce9ceb44768b96b8e2eae8a3d526c86d88eb035 (diff) | |
download | skia-99bcee22f87df865c74f9bdfc90ff2219d9b2b91.tar.gz |
Introduce enum class objects to GrDirectContext APIs instead of booleans
This would have prevented https://crbug.com/1475906 by introducing
a compiler error instead of the compiler picking the "wrong" option.
Follow-up work could include
- deleteSemaphoresAfterWait
- shouldExecuteWhileAbandoned
- preferScratchResources
Change-Id: Ife9e07f294117d74b0196ff7a7dbadce434500ab
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/751523
Commit-Queue: Kevin Lubick <kjlubick@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'fuzz')
-rw-r--r-- | fuzz/FuzzDDLThreading.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fuzz/FuzzDDLThreading.cpp b/fuzz/FuzzDDLThreading.cpp index 545302e007..f68cf75a9c 100644 --- a/fuzz/FuzzDDLThreading.cpp +++ b/fuzz/FuzzDDLThreading.cpp @@ -283,7 +283,7 @@ void DDLFuzzer::run() { }); fRecordingTaskGroup.wait(); - fGpuTaskGroup.add([=] { fContext->flushAndSubmit(fSurface, /* syncCpu= */ true); }); + fGpuTaskGroup.add([=] { fContext->flushAndSubmit(fSurface.get(), GrSyncCpu::kYes); }); fGpuTaskGroup.wait(); |