diff options
author | joshualitt <joshualitt@chromium.org> | 2015-01-21 11:52:36 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-21 11:52:36 -0800 |
commit | 17e7314e0e3085ec6021997d7c0593c339ba6a2e (patch) | |
tree | d6711e665e1d309d3790dcfc6c7058bbf93f54d8 /tests | |
parent | d4742fa550bafce5225cd267437eadef177c5945 (diff) |
remove drawtype
BUG=skia:
Review URL: https://codereview.chromium.org/862933005
Diffstat (limited to 'tests')
-rw-r--r-- | tests/GLProgramsTest.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp index 3d1f5e24f2..638e229caf 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()) { |