Minor fix to VkWrapTest

We need to make sure we cleanup the VkImage created when testing the
wrapping of a render target.

BUG=skia:

Change-Id: I60ea7e880fecccca309a250cc3b19eb29d6aa89c
Reviewed-on: https://skia-review.googlesource.com/10206
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
This commit is contained in:
Greg Daniel 2017-03-27 16:18:03 -04:00 committed by Skia Commit-Bot
parent d63442d87c
commit af40127570

View File

@ -100,7 +100,9 @@ void wrap_rt_test(skiatest::Reporter* reporter, GrContext* context) {
rt = gpu->wrapBackendRenderTarget(desc);
REPORTER_ASSERT(reporter, rt);
gpu->deleteTestingOnlyBackendTexture(backendObj, true);
// When we wrapBackendRenderTarget it is always borrowed, so we must make sure to free the
// resource when we're done.
gpu->deleteTestingOnlyBackendTexture(backendObj, false);
}
void wrap_trt_test(skiatest::Reporter* reporter, GrContext* context) {