Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: tests/GLProgramsTest.cpp

Issue 1151603005: Revert of Store context options on caps. (Closed) Base URL: https://skia.googlesource.com/skia.git@onecaps
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/gl/builders/GrGLProgramBuilder.cpp ('k') | tools/CopyTilesRenderer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/gpu/gl/builders/GrGLProgramBuilder.cpp ('k') | tools/CopyTilesRenderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698