OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 // This is a GPU-backend specific test. It relies on static intializers to work | 9 // This is a GPU-backend specific test. It relies on static intializers to work |
10 | 10 |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 DEF_GPUTEST(GLPrograms, reporter, factory) { | 276 DEF_GPUTEST(GLPrograms, reporter, factory) { |
277 // Set a locale that would cause shader compilation to fail because of , as
decimal separator. | 277 // Set a locale that would cause shader compilation to fail because of , as
decimal separator. |
278 // skbug 3330 | 278 // skbug 3330 |
279 #ifdef SK_BUILD_FOR_WIN | 279 #ifdef SK_BUILD_FOR_WIN |
280 GrAutoLocaleSetter als("sv-SE"); | 280 GrAutoLocaleSetter als("sv-SE"); |
281 #else | 281 #else |
282 GrAutoLocaleSetter als("sv_SE.UTF-8"); | 282 GrAutoLocaleSetter als("sv_SE.UTF-8"); |
283 #endif | 283 #endif |
284 | 284 |
285 // We suppress prints to avoid spew | 285 // We suppress prints to avoid spew |
286 GrContextOptions opts; | 286 GrContext::Options opts; |
287 opts.fSuppressPrints = true; | 287 opts.fSuppressPrints = true; |
288 GrContextFactory debugFactory(opts); | 288 GrContextFactory debugFactory(opts); |
289 for (int type = 0; type < GrContextFactory::kLastGLContextType; ++type) { | 289 for (int type = 0; type < GrContextFactory::kLastGLContextType; ++type) { |
290 GrContext* context = debugFactory.get(static_cast<GrContextFactory::GLCo
ntextType>(type)); | 290 GrContext* context = debugFactory.get(static_cast<GrContextFactory::GLCo
ntextType>(type)); |
291 if (context) { | 291 if (context) { |
292 GrGLGpu* gpu = static_cast<GrGLGpu*>(context->getGpu()); | 292 GrGLGpu* gpu = static_cast<GrGLGpu*>(context->getGpu()); |
293 | 293 |
294 /* | 294 /* |
295 * For the time being, we only support the test with desktop GL or f
or android on | 295 * For the time being, we only support the test with desktop GL or f
or android on |
296 * ARM platforms | 296 * ARM platforms |
(...skipping 16 matching lines...) Expand all Loading... |
313 } | 313 } |
314 #endif | 314 #endif |
315 GrTestTarget target; | 315 GrTestTarget target; |
316 context->getTestTarget(&target); | 316 context->getTestTarget(&target); |
317 REPORTER_ASSERT(reporter, target.target()->programUnitTest(maxStages
)); | 317 REPORTER_ASSERT(reporter, target.target()->programUnitTest(maxStages
)); |
318 } | 318 } |
319 } | 319 } |
320 } | 320 } |
321 | 321 |
322 #endif | 322 #endif |
OLD | NEW |