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

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: added comment 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
« no previous file with comments | « 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 dd731e07732a86904386bc30ed1220690fe26657..a3ef323e41ba5448f782e0520059d183fb111154 100644
--- a/tests/GLProgramsTest.cpp
+++ b/tests/GLProgramsTest.cpp
@@ -439,7 +439,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);
}
« no previous file with comments | « src/gpu/effects/GrDashingEffect.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698