diff options
| author | Tim Murray <timmurray@google.com> | 2013-07-17 16:50:10 -0700 |
|---|---|---|
| committer | Tim Murray <timmurray@google.com> | 2013-07-23 16:48:41 -0700 |
| commit | a423096c0d49e5cfe13a400b4323a76f89c6885c (patch) | |
| tree | 287bb1663043311f450980c7f741cc7ae3fc757a /cpp/Script.cpp | |
| parent | f51f8c741dda633f525a3eeb7552bff5819a75f0 (diff) | |
Move C++ API over to function tables rather than linking libRS directly.
Change-Id: I7841df768d5bd10fa941b3655673fd73496a8137
Diffstat (limited to 'cpp/Script.cpp')
| -rw-r--r-- | cpp/Script.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/Script.cpp b/cpp/Script.cpp index 54a571a8..70754d00 100644 --- a/cpp/Script.cpp +++ b/cpp/Script.cpp @@ -23,7 +23,7 @@ using namespace android; using namespace RSC; void Script::invoke(uint32_t slot, const void *v, size_t len) const { - rsScriptInvokeV(mRS->getContext(), getID(), slot, v, len); + RS::dispatch->ScriptInvokeV(mRS->getContext(), getID(), slot, v, len); } void Script::forEach(uint32_t slot, sp<const Allocation> ain, sp<const Allocation> aout, @@ -33,7 +33,7 @@ void Script::forEach(uint32_t slot, sp<const Allocation> ain, sp<const Allocatio } void *in_id = BaseObj::getObjID(ain); void *out_id = BaseObj::getObjID(aout); - rsScriptForEach(mRS->getContext(), getID(), slot, in_id, out_id, usr, usrLen, NULL, 0); + RS::dispatch->ScriptForEach(mRS->getContext(), getID(), slot, in_id, out_id, usr, usrLen, NULL, 0); } @@ -42,16 +42,16 @@ Script::Script(void *id, sp<RS> rs) : BaseObj(id, rs) { void Script::bindAllocation(sp<Allocation> va, uint32_t slot) const { - rsScriptBindAllocation(mRS->getContext(), getID(), BaseObj::getObjID(va), slot); + RS::dispatch->ScriptBindAllocation(mRS->getContext(), getID(), BaseObj::getObjID(va), slot); } void Script::setVar(uint32_t index, sp<const BaseObj> o) const { - rsScriptSetVarObj(mRS->getContext(), getID(), index, (o == NULL) ? 0 : o->getID()); + RS::dispatch->ScriptSetVarObj(mRS->getContext(), getID(), index, (o == NULL) ? 0 : o->getID()); } void Script::setVar(uint32_t index, const void *v, size_t len) const { - rsScriptSetVarV(mRS->getContext(), getID(), index, v, len); + RS::dispatch->ScriptSetVarV(mRS->getContext(), getID(), index, v, len); } void Script::FieldBase::init(sp<RS> rs, uint32_t dimx, uint32_t usages) { |
