| Index: tests/GLProgramsTest.cpp
|
| diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp
|
| index 3d1f5e24f24dfc87897aac8a73148b8b62ee66f0..638e229cafae3a691c70ca0b67968428d67b6aa2 100644
|
| --- a/tests/GLProgramsTest.cpp
|
| +++ b/tests/GLProgramsTest.cpp
|
| @@ -272,9 +272,6 @@ bool GrDrawTarget::programUnitTest(int maxStages) {
|
| // if path rendering we have to setup a couple of things like the draw type
|
| bool usePathRendering = gpu->glCaps().pathRenderingSupport() && random.nextBool();
|
|
|
| - GrGpu::DrawType drawType = usePathRendering ? GrGpu::kDrawPath_DrawType :
|
| - GrGpu::kDrawPoints_DrawType;
|
| -
|
| // twiddle drawstate knobs randomly
|
| bool hasGeometryProcessor = !usePathRendering;
|
| SkAutoTUnref<const GrGeometryProcessor> gp;
|
| @@ -320,9 +317,9 @@ bool GrDrawTarget::programUnitTest(int maxStages) {
|
| primProc->initBatchTracker(&bt, ods.getInitBatchTracker());
|
|
|
| GrProgramDesc desc;
|
| - gpu->buildProgramDesc(&desc, *primProc, ods, ods.descInfo(), drawType, bt);
|
| + gpu->buildProgramDesc(&desc, *primProc, ods, ods.descInfo(), bt);
|
|
|
| - GrGpu::DrawArgs args(primProc, &ods, &desc, &bt, drawType);
|
| + GrGpu::DrawArgs args(primProc, &ods, &desc, &bt);
|
| SkAutoTUnref<GrGLProgram> program(GrGLProgramBuilder::CreateProgram(args, gpu));
|
|
|
| if (NULL == program.get()) {
|
|
|