summaryrefslogtreecommitdiff
path: root/rsFont.cpp
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2013-07-09 14:29:39 -0700
committerJason Sams <jsams@google.com>2013-07-09 14:29:39 -0700
commitf313dc32d5ea68a7c48fb4ec6e131ec2fb97ce2d (patch)
tree9309212ee75f350a9cf3b3589f71c7c33b75bc71 /rsFont.cpp
parentdc596dd105ad4b066a13f7450dae32d2bf56c5a6 (diff)
downloadrs-f313dc32d5ea68a7c48fb4ec6e131ec2fb97ce2d.tar.gz
Remove internal element builder and vector code.
Remove additional String8 references from shared includes. Change-Id: Iede11384b9fc5a303d15d47fd4074c800dc6ad5f
Diffstat (limited to 'rsFont.cpp')
-rw-r--r--rsFont.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/rsFont.cpp b/rsFont.cpp
index 2a2c3b49..a4833591 100644
--- a/rsFont.cpp
+++ b/rsFont.cpp
@@ -508,10 +508,10 @@ void FontState::initRenderState() {
RS_KIND_USER, false, 4);
ObjectBaseRef<const Element> gammaElem = Element::createRef(mRSC, RS_TYPE_FLOAT_32,
RS_KIND_USER, false, 1);
- Element::Builder builder;
- builder.add(colorElem.get(), "Color", 1);
- builder.add(gammaElem.get(), "Gamma", 1);
- ObjectBaseRef<const Element> constInput = builder.create(mRSC);
+
+ const char *ebn1[] = { "Color", "Gamma" };
+ const Element *ebe1[] = {colorElem.get(), gammaElem.get()};
+ ObjectBaseRef<const Element> constInput = Element::create(mRSC, 2, ebe1, ebn1);
ObjectBaseRef<Type> inputType = Type::getTypeRef(mRSC, constInput.get(), 1, 0, 0, false, false, 0);
@@ -607,10 +607,9 @@ void FontState::initVertexArrayBuffers() {
ObjectBaseRef<const Element> posElem = Element::createRef(mRSC, RS_TYPE_FLOAT_32, RS_KIND_USER, false, 3);
ObjectBaseRef<const Element> texElem = Element::createRef(mRSC, RS_TYPE_FLOAT_32, RS_KIND_USER, false, 2);
- Element::Builder builder;
- builder.add(posElem.get(), "position", 1);
- builder.add(texElem.get(), "texture0", 1);
- ObjectBaseRef<const Element> vertexDataElem = builder.create(mRSC);
+ const char *ebn1[] = { "position", "texture0" };
+ const Element *ebe1[] = {posElem.get(), texElem.get()};
+ ObjectBaseRef<const Element> vertexDataElem = Element::create(mRSC, 2, ebe1, ebn1);
ObjectBaseRef<Type> vertexDataType = Type::getTypeRef(mRSC, vertexDataElem.get(),
mMaxNumberOfQuads * 4,