summaryrefslogtreecommitdiff
path: root/cpp/Element.cpp
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2013-07-17 16:50:10 -0700
committerTim Murray <timmurray@google.com>2013-07-23 16:48:41 -0700
commita423096c0d49e5cfe13a400b4323a76f89c6885c (patch)
tree287bb1663043311f450980c7f741cc7ae3fc757a /cpp/Element.cpp
parentf51f8c741dda633f525a3eeb7552bff5819a75f0 (diff)
downloadrs-a423096c0d49e5cfe13a400b4323a76f89c6885c.tar.gz
Move C++ API over to function tables rather than linking libRS directly.
Change-Id: I7841df768d5bd10fa941b3655673fd73496a8137
Diffstat (limited to 'cpp/Element.cpp')
-rw-r--r--cpp/Element.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/Element.cpp b/cpp/Element.cpp
index 51a96cd2..7c58516b 100644
--- a/cpp/Element.cpp
+++ b/cpp/Element.cpp
@@ -250,7 +250,7 @@ void Element::updateFromNative() {
}
sp<const Element> Element::createUser(sp<RS> rs, RsDataType dt) {
- void * id = rsElementCreate(rs->getContext(), dt, RS_KIND_USER, false, 1);
+ void * id = RS::dispatch->ElementCreate(rs->getContext(), dt, RS_KIND_USER, false, 1);
return new Element(id, rs, dt, RS_KIND_USER, false, 1);
}
@@ -258,7 +258,7 @@ sp<const Element> Element::createVector(sp<RS> rs, RsDataType dt, uint32_t size)
if (size < 2 || size > 4) {
rs->throwError("Vector size out of range 2-4.");
}
- void *id = rsElementCreate(rs->getContext(), dt, RS_KIND_USER, false, size);
+ void *id = RS::dispatch->ElementCreate(rs->getContext(), dt, RS_KIND_USER, false, size);
return new Element(id, rs, dt, RS_KIND_USER, false, size);
}
@@ -309,7 +309,7 @@ sp<const Element> Element::createPixel(sp<RS> rs, RsDataType dt, RsDataKind dk)
break;
}
- void * id = rsElementCreate(rs->getContext(), dt, dk, true, size);
+ void * id = RS::dispatch->ElementCreate(rs->getContext(), dt, dk, true, size);
return new Element(id, rs, dt, dk, true, size);
}
@@ -371,7 +371,7 @@ sp<const Element> Element::Builder::create() {
sizeArray[ct] = mElementNames[ct].length();
}
- void *id = rsElementCreate2(mRS->getContext(),
+ void *id = RS::dispatch->ElementCreate2(mRS->getContext(),
(RsElement *)elementArray, fieldCount,
nameArray, fieldCount * sizeof(size_t), sizeArray,
(const uint32_t *)mArraySizes.array(), fieldCount);