aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2018-01-12 13:15:06 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-12 19:41:13 +0000
commit966db9e4ee1e5485fce21a5953b426ad8bf95a9d (patch)
treef856f623d6a6bf04230873ff2001e9019b2cf641 /tests
parent7a10b332a37dab94b1c59685714f6d8c28fc84b9 (diff)
Force BackendTextureImageGenerator to work on only 1 consumer context
Bug: skia: Change-Id: I83d3e4af6f20c877c541964fdd489434f6a62b25 Reviewed-on: https://skia-review.googlesource.com/93200 Commit-Queue: Greg Daniel <egdaniel@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/ImageTest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/ImageTest.cpp b/tests/ImageTest.cpp
index ffccb85e45..078bd7c1bd 100644
--- a/tests/ImageTest.cpp
+++ b/tests/ImageTest.cpp
@@ -893,11 +893,12 @@ static void test_cross_context_image(skiatest::Reporter* reporter, const GrConte
proxy.reset(nullptr);
proxySecondRef.reset(nullptr);
- // Now we should be able to borrow the texture from the other context
+ // Now we should still fail to be able to borrow the texture from the other context
+ // since only one context can ever borrow
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);