diff options
author | Robert Phillips <robertphillips@google.com> | 2018-07-27 12:21:37 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-27 17:07:26 +0000 |
commit | 6fc3092af153b9d7571ac2187dd7c90ee5fc6167 (patch) | |
tree | 9f7153f665e5b1bf1eb911d780832ed7e02810e5 /tests | |
parent | 8e8fec729928c5dc52f90aaef898855d94de2944 (diff) |
Fix TSAN bug in TransferPixelsTest
Change-Id: I067d9e86d00ab6bfa91e2d22725b26315a3ec348
Reviewed-on: https://skia-review.googlesource.com/144026
Reviewed-by: Ben Wagner <benjaminwagner@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/TransferPixelsTest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/TransferPixelsTest.cpp b/tests/TransferPixelsTest.cpp index 339a591660..050080ac69 100644 --- a/tests/TransferPixelsTest.cpp +++ b/tests/TransferPixelsTest.cpp @@ -112,6 +112,9 @@ void basic_transfer_test(skiatest::Reporter* reporter, GrContext* context, GrCol } sk_sp<GrTexture> tex = resourceProvider->createTexture(desc, SkBudgeted::kNo); + if (!tex) { + continue; + } ////////////////////////// // transfer full data |