diff options
author | Greg Daniel <egdaniel@google.com> | 2018-01-22 16:11:35 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-22 21:41:45 +0000 |
commit | 48661b868fbbf7a6193ef49bb6a05a0df61e7c45 (patch) | |
tree | 13582c20667d91e8989f76c224d99f2231714730 /tests/ImageTest.cpp | |
parent | 2e6feed858c2b14b9083cf7d2b040a177dcb62ea (diff) |
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 <brianosman@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'tests/ImageTest.cpp')
-rw-r--r-- | tests/ImageTest.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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); |