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

Unified Diff: tests/GLProgramsTest.cpp

Issue 862933005: remove drawtype (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/gl/builders/GrGLProgramBuilder.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()) {
« no previous file with comments | « src/gpu/gl/builders/GrGLProgramBuilder.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698