commit | 6e1d51a2c74ce26c499cb141920007d3dda11435 | [log] [tgz] |
---|---|---|
author | Brian Osman <brianosman@google.com> | Wed Oct 30 15:30:36 2019 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Wed Oct 30 20:07:48 2019 +0000 |
tree | e0444d7cb7723388a0ff4692a4f5d66ebcfeace9 | |
parent | c7a8df8b1cdbc63a1ac2ceceb91f59db5a963272 [diff] [blame] |
Print out a warning if trying to use a cross context image on two contexts Change-Id: Ie4611b4aae65aed5aa45be8841fbb7326bcfbf0b Bug: skia:9581 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/251773 Reviewed-by: Jim Van Verth <jvanverth@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
diff --git a/src/gpu/GrBackendTextureImageGenerator.cpp b/src/gpu/GrBackendTextureImageGenerator.cpp index bd4cacb..79ff721 100644 --- a/src/gpu/GrBackendTextureImageGenerator.cpp +++ b/src/gpu/GrBackendTextureImageGenerator.cpp
@@ -111,6 +111,7 @@ if (SK_InvalidGenID != fRefHelper->fBorrowingContextID) { if (fRefHelper->fBorrowingContextID != context->priv().contextID()) { fBorrowingMutex.release(); + SkDebugf("GrBackendTextureImageGenerator: Trying to use texture on two GrContexts!\n"); return nullptr; } else { SkASSERT(fRefHelper->fBorrowingContextReleaseProc);