From 48661b868fbbf7a6193ef49bb6a05a0df61e7c45 Mon Sep 17 00:00:00 2001 From: Greg Daniel Date: Mon, 22 Jan 2018 16:11:35 -0500 Subject: Make use of VkSemaphores thread safe assuming use of the same VkQueue. This allows us to re-enable support for multiple GrContexts in GrBackendTextureImageGenerator. Bug: skia: Change-Id: Ifd6ac1ad81cdfbd1fd986467d8beb359399d6588 Reviewed-on: https://skia-review.googlesource.com/98340 Reviewed-by: Brian Osman Reviewed-by: Brian Salomon Commit-Queue: Greg Daniel --- tests/ImageTest.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/ImageTest.cpp') diff --git a/tests/ImageTest.cpp b/tests/ImageTest.cpp index 83ff47c256..6cc0fee4d9 100644 --- a/tests/ImageTest.cpp +++ b/tests/ImageTest.cpp @@ -894,12 +894,11 @@ static void test_cross_context_image(skiatest::Reporter* reporter, const GrConte proxy.reset(nullptr); proxySecondRef.reset(nullptr); - // Now we should still fail to be able to borrow the texture from the other context - // since only one context can ever borrow + // Now we should be able to borrow the texture from the other context otherTestContext->makeCurrent(); otherProxy = as_IB(refImg)->asTextureProxyRef(otherCtx, GrSamplerState::ClampNearest(), nullptr, &texColorSpace, nullptr); - REPORTER_ASSERT(reporter, !otherProxy); + REPORTER_ASSERT(reporter, otherProxy); // Release everything otherProxy.reset(nullptr); -- cgit v1.2.3