Remove abandon param from GrGpu::deleteTestingOnlyBackendTexture.
Prior to the existence of GrBackendTexture this was required to delete a backend-specific blob. Now it's a no-op.
Change-Id: Iba0e4233e4d07235626f0ae14b0f7e77c073d8c0
Reviewed-on: https://skia-review.googlesource.com/112569
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
diff --git a/tests/ResourceCacheTest.cpp b/tests/ResourceCacheTest.cpp
index 2ceb567..a88c062 100644
--- a/tests/ResourceCacheTest.cpp
+++ b/tests/ResourceCacheTest.cpp
@@ -245,8 +245,12 @@
REPORTER_ASSERT(reporter, borrowedIsAlive);
REPORTER_ASSERT(reporter, !adoptedIsAlive);
- gpu->deleteTestingOnlyBackendTexture(&(backendTextures[0]), !borrowedIsAlive);
- gpu->deleteTestingOnlyBackendTexture(&(backendTextures[1]), !adoptedIsAlive);
+ if (borrowedIsAlive) {
+ gpu->deleteTestingOnlyBackendTexture(&(backendTextures[0]));
+ }
+ if (adoptedIsAlive) {
+ gpu->deleteTestingOnlyBackendTexture(&(backendTextures[1]));
+ }
context->resetContext();
}