| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 gpu->readPixels(tex, subWidth, subHeight, subWidth, subHeight, | 190 gpu->readPixels(tex, subWidth, subHeight, subWidth, subHeight, |
| 191 config, (void*)subBuffer.get(), 0); | 191 config, (void*)subBuffer.get(), 0); |
| 192 REPORTER_ASSERT(reporter, does_full_buffer_contain_correct_color(subBuffer.g
et(), | 192 REPORTER_ASSERT(reporter, does_full_buffer_contain_correct_color(subBuffer.g
et(), |
| 193 subColor4, | 193 subColor4, |
| 194 config, | 194 config, |
| 195 subWidth, | 195 subWidth, |
| 196 subHeight))
; | 196 subHeight))
; |
| 197 } | 197 } |
| 198 | 198 |
| 199 DEF_GPUTEST_FOR_VULKAN_CONTEXT(VkClearTests, reporter, ctxInfo) { | 199 DEF_GPUTEST_FOR_VULKAN_CONTEXT(VkClearTests, reporter, ctxInfo) { |
| 200 basic_clear_test(reporter, ctxInfo.fGrContext, kRGBA_8888_GrPixelConfig); | 200 basic_clear_test(reporter, ctxInfo.grContext(), kRGBA_8888_GrPixelConfig); |
| 201 basic_clear_test(reporter, ctxInfo.fGrContext, kBGRA_8888_GrPixelConfig); | 201 basic_clear_test(reporter, ctxInfo.grContext(), kBGRA_8888_GrPixelConfig); |
| 202 sub_clear_test(reporter, ctxInfo.fGrContext, kRGBA_8888_GrPixelConfig); | 202 sub_clear_test(reporter, ctxInfo.grContext(), kRGBA_8888_GrPixelConfig); |
| 203 sub_clear_test(reporter, ctxInfo.fGrContext, kBGRA_8888_GrPixelConfig); | 203 sub_clear_test(reporter, ctxInfo.grContext(), kBGRA_8888_GrPixelConfig); |
| 204 } | 204 } |
| 205 | 205 |
| 206 #endif | 206 #endif |
| OLD | NEW |