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

Unified Diff: tests/GLProgramsTest.cpp

Issue 715903002: Push creation of default GP to the caller (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month 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
« src/gpu/GrDefaultGeoProcFactory.h ('K') | « src/gpu/effects/GrDashingEffect.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 9be082a47bae7d27922bf74d4f17957673098cf7..0627eb50f6f2e5683e83e793476e2c3a10e258cc 100644
--- a/tests/GLProgramsTest.cpp
+++ b/tests/GLProgramsTest.cpp
@@ -438,7 +438,7 @@ bool GrDrawTarget::programUnitTest(int maxStages) {
GrGpu::kDrawPoints_DrawType;
// twiddle drawstate knobs randomly
- bool hasGeometryProcessor = usePathRendering ? false : random.nextBool();
+ bool hasGeometryProcessor = !usePathRendering;
if (hasGeometryProcessor) {
set_random_gp(fContext, gpu->glCaps(), ds, &random, dummyTextures);
}
« src/gpu/GrDefaultGeoProcFactory.h ('K') | « src/gpu/effects/GrDashingEffect.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698