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/mock | |
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/mock')
-rw-r--r-- | src/gpu/mock/GrMockGpu.cpp | 2 | ||||
-rw-r--r-- | src/gpu/mock/GrMockGpu.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/mock/GrMockGpu.cpp b/src/gpu/mock/GrMockGpu.cpp index 3a6b661ece..05371b42e6 100644 --- a/src/gpu/mock/GrMockGpu.cpp +++ b/src/gpu/mock/GrMockGpu.cpp @@ -113,7 +113,7 @@ bool GrMockGpu::isTestingOnlyBackendTexture(const GrBackendTexture& tex) const { return fOutstandingTestingOnlyTextureIDs.contains(info->fID); } -void GrMockGpu::deleteTestingOnlyBackendTexture(GrBackendTexture* tex, bool abandonTexture) { +void GrMockGpu::deleteTestingOnlyBackendTexture(GrBackendTexture* tex) { SkASSERT(kMock_GrBackend == tex->backend()); const GrMockTextureInfo* info = tex->getMockTextureInfo(); diff --git a/src/gpu/mock/GrMockGpu.h b/src/gpu/mock/GrMockGpu.h index b5398e54b3..14cbd7979f 100644 --- a/src/gpu/mock/GrMockGpu.h +++ b/src/gpu/mock/GrMockGpu.h @@ -124,7 +124,7 @@ private: GrBackendTexture createTestingOnlyBackendTexture(void* pixels, int w, int h, GrPixelConfig, bool isRT, GrMipMapped) override; bool isTestingOnlyBackendTexture(const GrBackendTexture&) const override; - void deleteTestingOnlyBackendTexture(GrBackendTexture*, bool abandonTexture = false) override; + void deleteTestingOnlyBackendTexture(GrBackendTexture*) override; static int NextInternalTextureID(); static int NextExternalTextureID(); |