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

Side by Side Diff: tests/GLProgramsTest.cpp

Issue 1229143007: Start to propagate constness of GrPipelineBuilder up the stack (Closed) Base URL: https://skia.googlesource.com/skia.git@const-fix
Patch Set: rebase Created 5 years, 5 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/GrGLGpu.cpp ('k') | no next file » | 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 SkAutoTUnref<GrBatch> batch(GrRandomBatch(&random, context)); 244 SkAutoTUnref<GrBatch> batch(GrRandomBatch(&random, context));
245 SkASSERT(batch); 245 SkASSERT(batch);
246 246
247 GrProcessorDataManager procDataManager; 247 GrProcessorDataManager procDataManager;
248 GrProcessorTestData ptd(&random, context, &procDataManager, fGpu->caps() , dummyTextures); 248 GrProcessorTestData ptd(&random, context, &procDataManager, fGpu->caps() , dummyTextures);
249 set_random_color_coverage_stages(&pipelineBuilder, &ptd, maxStages); 249 set_random_color_coverage_stages(&pipelineBuilder, &ptd, maxStages);
250 set_random_xpf(&pipelineBuilder, &ptd); 250 set_random_xpf(&pipelineBuilder, &ptd);
251 set_random_state(&pipelineBuilder, &random); 251 set_random_state(&pipelineBuilder, &random);
252 set_random_stencil(&pipelineBuilder, &random); 252 set_random_stencil(&pipelineBuilder, &random);
253 253
254 this->drawBatch(&pipelineBuilder, batch); 254 this->drawBatch(pipelineBuilder, batch);
255 } 255 }
256 256
257 // Flush everything, test passes if flush is successful(ie, no asserts are h it, no crashes) 257 // Flush everything, test passes if flush is successful(ie, no asserts are h it, no crashes)
258 this->flush(); 258 this->flush();
259 return true; 259 return true;
260 } 260 }
261 261
262 DEF_GPUTEST(GLPrograms, reporter, factory) { 262 DEF_GPUTEST(GLPrograms, reporter, factory) {
263 // Set a locale that would cause shader compilation to fail because of , as decimal separator. 263 // Set a locale that would cause shader compilation to fail because of , as decimal separator.
264 // skbug 3330 264 // skbug 3330
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 } 299 }
300 #endif 300 #endif
301 GrTestTarget target; 301 GrTestTarget target;
302 context->getTestTarget(&target); 302 context->getTestTarget(&target);
303 REPORTER_ASSERT(reporter, target.target()->programUnitTest(context, maxStages)); 303 REPORTER_ASSERT(reporter, target.target()->programUnitTest(context, maxStages));
304 } 304 }
305 } 305 }
306 } 306 }
307 307
308 #endif 308 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLGpu.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698