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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 4, | 127 4, |
128 5)); | 128 5)); |
129 | 129 |
130 tex1->unref(); | 130 tex1->unref(); |
131 } else { | 131 } else { |
132 REPORTER_ASSERT(reporter, !canCreate); | 132 REPORTER_ASSERT(reporter, !canCreate); |
133 } | 133 } |
134 } | 134 } |
135 | 135 |
136 DEF_GPUTEST_FOR_VULKAN_CONTEXT(VkUploadPixelsTests, reporter, ctxInfo) { | 136 DEF_GPUTEST_FOR_VULKAN_CONTEXT(VkUploadPixelsTests, reporter, ctxInfo) { |
137 basic_texture_test(reporter, ctxInfo.fGrContext, kRGBA_8888_GrPixelConfig, f
alse, false); | 137 basic_texture_test(reporter, ctxInfo.grContext(), kRGBA_8888_GrPixelConfig,
false, false); |
138 basic_texture_test(reporter, ctxInfo.fGrContext, kRGBA_8888_GrPixelConfig, t
rue, false); | 138 basic_texture_test(reporter, ctxInfo.grContext(), kRGBA_8888_GrPixelConfig,
true, false); |
139 basic_texture_test(reporter, ctxInfo.fGrContext, kRGBA_8888_GrPixelConfig, f
alse, true); | 139 basic_texture_test(reporter, ctxInfo.grContext(), kRGBA_8888_GrPixelConfig,
false, true); |
140 basic_texture_test(reporter, ctxInfo.fGrContext, kRGBA_8888_GrPixelConfig, t
rue, true); | 140 basic_texture_test(reporter, ctxInfo.grContext(), kRGBA_8888_GrPixelConfig,
true, true); |
141 basic_texture_test(reporter, ctxInfo.fGrContext, kBGRA_8888_GrPixelConfig, f
alse, false); | 141 basic_texture_test(reporter, ctxInfo.grContext(), kBGRA_8888_GrPixelConfig,
false, false); |
142 basic_texture_test(reporter, ctxInfo.fGrContext, kBGRA_8888_GrPixelConfig, t
rue, false); | 142 basic_texture_test(reporter, ctxInfo.grContext(), kBGRA_8888_GrPixelConfig,
true, false); |
143 basic_texture_test(reporter, ctxInfo.fGrContext, kBGRA_8888_GrPixelConfig, f
alse, true); | 143 basic_texture_test(reporter, ctxInfo.grContext(), kBGRA_8888_GrPixelConfig,
false, true); |
144 basic_texture_test(reporter, ctxInfo.fGrContext, kBGRA_8888_GrPixelConfig, t
rue, true); | 144 basic_texture_test(reporter, ctxInfo.grContext(), kBGRA_8888_GrPixelConfig,
true, true); |
145 } | 145 } |
146 | 146 |
147 #endif | 147 #endif |
OLD | NEW |