| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 subColor4, | 193 subColor4, |
| 194 config, | 194 config, |
| 195 subWidth, | 195 subWidth, |
| 196 subHeight))
; | 196 subHeight))
; |
| 197 } | 197 } |
| 198 | 198 |
| 199 DEF_GPUTEST(VkClearTests, reporter, factory) { | 199 DEF_GPUTEST(VkClearTests, reporter, factory) { |
| 200 GrContextOptions opts; | 200 GrContextOptions opts; |
| 201 opts.fSuppressPrints = true; | 201 opts.fSuppressPrints = true; |
| 202 GrContextFactory debugFactory(opts); | 202 GrContextFactory debugFactory(opts); |
| 203 for (int type = 0; type < GrContextFactory::kLastGLContextType; ++type) { | 203 for (int type = 0; type < GrContextFactory::kContextTypeCnt; ++type) { |
| 204 if (static_cast<GrContextFactory::GLContextType>(type) != | 204 if (static_cast<GrContextFactory::ContextType>(type) != |
| 205 GrContextFactory::kNative_GLContextType) { | 205 GrContextFactory::kNativeGL_ContextType) { |
| 206 continue; | 206 continue; |
| 207 } | 207 } |
| 208 GrContext* context = debugFactory.get(static_cast<GrContextFactory::GLCo
ntextType>(type)); | 208 GrContext* context = debugFactory.get(static_cast<GrContextFactory::Cont
extType>(type)); |
| 209 if (context) { | 209 if (context) { |
| 210 basic_clear_test(reporter, context, kRGBA_8888_GrPixelConfig); | 210 basic_clear_test(reporter, context, kRGBA_8888_GrPixelConfig); |
| 211 basic_clear_test(reporter, context, kBGRA_8888_GrPixelConfig); | 211 basic_clear_test(reporter, context, kBGRA_8888_GrPixelConfig); |
| 212 sub_clear_test(reporter, context, kRGBA_8888_GrPixelConfig); | 212 sub_clear_test(reporter, context, kRGBA_8888_GrPixelConfig); |
| 213 sub_clear_test(reporter, context, kBGRA_8888_GrPixelConfig); | 213 sub_clear_test(reporter, context, kBGRA_8888_GrPixelConfig); |
| 214 } | 214 } |
| 215 | 215 |
| 216 } | 216 } |
| 217 } | 217 } |
| 218 | 218 |
| 219 #endif | 219 #endif |
| OLD | NEW |