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

Unified Diff: tests/GLProgramsTest.cpp

Issue 12462008: Add GrEllipseEdgeEffect (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: rebase again Created 7 years, 9 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/GrGLShaderBuilder.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
===================================================================
--- tests/GLProgramsTest.cpp (revision 8091)
+++ tests/GLProgramsTest.cpp (working copy)
@@ -121,6 +121,8 @@
GrGLProgram::Desc pdesc;
GrEffectStage stages[GrDrawState::kNumStages];
+ int currAttribIndex = GrDrawState::kAttribIndexCount;
+ int attribIndices[2];
for (int s = 0; s < maxStages; ++s) {
// enable the stage?
if (random.nextBool()) {
@@ -129,7 +131,10 @@
&random,
this->getContext(),
dummyTextures));
- stages[s].setEffect(effect.get());
+ for (int i = 0; i < effect.get()->get()->numVertexAttribs(); ++i) {
+ attribIndices[i] = currAttribIndex++;
+ }
+ stages[s].setEffect(effect.get(), attribIndices);
}
}
pdesc.setRandom(&random, this, stages);
« no previous file with comments | « src/gpu/gl/GrGLShaderBuilder.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698