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

Unified Diff: tests/PrimitiveProcessorTest.cpp

Issue 2248323003: Simplify adding attributes to GrGeometryProcessor (Closed) Base URL: https://chromium.googlesource.com/skia.git@xformhelper
Patch Set: Created 4 years, 4 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
« src/gpu/GrGeometryProcessor.h ('K') | « src/gpu/instanced/InstanceProcessor.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PrimitiveProcessorTest.cpp
diff --git a/tests/PrimitiveProcessorTest.cpp b/tests/PrimitiveProcessorTest.cpp
index 7a080c57aca66349bce6e8dda10c4fea6478fb81..0ebeba9699f0332804e3f365a97a40c193f415d0 100644
--- a/tests/PrimitiveProcessorTest.cpp
+++ b/tests/PrimitiveProcessorTest.cpp
@@ -57,11 +57,7 @@ private:
}
for (auto i = 0; i < numAttribs; ++i) {
robertphillips 2016/08/17 16:11:32 rm attribute ?
bsalomon 2016/08/17 16:17:44 Done.
Attribute attribute;
- attribute.fType = kVec2f_GrVertexAttribType;
- attribute.fName = fAttribNames[i].c_str();
- attribute.fOffset = 2 * sizeof(float) * i;
- attribute.fPrecision = kDefault_GrSLPrecision;
- this->addVertexAttrib(attribute);
+ this->addVertexAttrib(fAttribNames[i].c_str(), kVec2f_GrVertexAttribType);
}
};
const char* name() const override { return "Dummy GP"; }
« src/gpu/GrGeometryProcessor.h ('K') | « src/gpu/instanced/InstanceProcessor.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698