OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 // This is a GPU-backend specific test. It relies on static intializers to work | 8 // This is a GPU-backend specific test. It relies on static intializers to work |
9 | 9 |
10 #include "SkTypes.h" | 10 #include "SkTypes.h" |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 // check adopt creation | 152 // check adopt creation |
153 backendCopy.fAlloc = backendTex->fAlloc; | 153 backendCopy.fAlloc = backendTex->fAlloc; |
154 tex = gpu->wrapBackendTexture(desc, kAdopt_GrWrapOwnership); | 154 tex = gpu->wrapBackendTexture(desc, kAdopt_GrWrapOwnership); |
155 REPORTER_ASSERT(reporter, tex); | 155 REPORTER_ASSERT(reporter, tex); |
156 tex->unref(); | 156 tex->unref(); |
157 | 157 |
158 gpu->deleteTestingOnlyBackendTexture(backendObj, true); | 158 gpu->deleteTestingOnlyBackendTexture(backendObj, true); |
159 } | 159 } |
160 | 160 |
161 DEF_GPUTEST_FOR_VULKAN_CONTEXT(VkWrapTests, reporter, ctxInfo) { | 161 DEF_GPUTEST_FOR_VULKAN_CONTEXT(VkWrapTests, reporter, ctxInfo) { |
162 wrap_tex_test(reporter, ctxInfo.fGrContext); | 162 wrap_tex_test(reporter, ctxInfo.grContext()); |
163 wrap_rt_test(reporter, ctxInfo.fGrContext); | 163 wrap_rt_test(reporter, ctxInfo.grContext()); |
164 wrap_trt_test(reporter, ctxInfo.fGrContext); | 164 wrap_trt_test(reporter, ctxInfo.grContext()); |
165 } | 165 } |
166 | 166 |
167 #endif | 167 #endif |
OLD | NEW |