diff options
author | Brian Salomon <bsalomon@google.com> | 2018-03-07 11:47:54 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-03-07 17:56:30 +0000 |
commit | e64b064f87018cc84ad843b3cad3185f87917fe8 (patch) | |
tree | cef7f85bd7b639fdc0c26831c24a6f1d96637559 /src/gpu/GrGpu.h | |
parent | 1b9b7d539335030e3d269a57d418a4fa6d62c038 (diff) |
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>
Diffstat (limited to 'src/gpu/GrGpu.h')
-rw-r--r-- | src/gpu/GrGpu.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h index dc518cd72d..e7e4ac087f 100644 --- a/src/gpu/GrGpu.h +++ b/src/gpu/GrGpu.h @@ -464,11 +464,11 @@ public: GrMipMapped mipMapped) = 0; /** Check a handle represents an actual texture in the backend API that has not been freed. */ virtual bool isTestingOnlyBackendTexture(const GrBackendTexture&) const = 0; - /** If ownership of the backend texture has been transferred pass true for abandonTexture. This - will do any necessary cleanup of the handle without freeing the texture in the backend - API. */ - virtual void deleteTestingOnlyBackendTexture(GrBackendTexture*, - bool abandonTexture = false) = 0; + /** + * Frees a texture created by createTestingOnlyBackendTexture(). If ownership of the backend + * texture has been transferred to a GrContext using adopt semantics this should not be called. + */ + virtual void deleteTestingOnlyBackendTexture(GrBackendTexture*) = 0; // width and height may be larger than rt (if underlying API allows it). // Returns nullptr if compatible sb could not be created, otherwise the caller owns the ref on |