diff options
| author | 2012-03-14 15:36:02 -0700 | |
|---|---|---|
| committer | 2012-03-14 15:36:02 -0700 | |
| commit | d1c8c1292c4273442c052d0899f3375913a51fc5 (patch) | |
| tree | d960fab220e90309b20b2ffb23e62103236d5766 /libs/rs/Script.cpp | |
| parent | 89ea4ca9c26f3c7e365525a0b83500e85517a457 (diff) | |
Fix minor C++ api issues.
Change-Id: I30e12938be5da52b2d952db57a51b4deb5e27239
Diffstat (limited to 'libs/rs/Script.cpp')
| -rw-r--r-- | libs/rs/Script.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/rs/Script.cpp b/libs/rs/Script.cpp index 25fa673c53f9..c87d4604a093 100644 --- a/libs/rs/Script.cpp +++ b/libs/rs/Script.cpp @@ -25,12 +25,12 @@ #include "Allocation.h" #include "Script.h" -void Script::invoke(uint32_t slot, const void *v, size_t len) { +void Script::invoke(uint32_t slot, const void *v, size_t len) const { rsScriptInvokeV(mRS->mContext, getID(), slot, v, len); } void Script::forEach(uint32_t slot, const Allocation *ain, const Allocation *aout, - const void *usr, size_t usrLen) { + const void *usr, size_t usrLen) const { if ((ain == NULL) && (aout == NULL)) { mRS->throwError("At least one of ain or aout is required to be non-null."); } @@ -44,16 +44,16 @@ Script::Script(void *id, RenderScript *rs) : BaseObj(id, rs) { } -void Script::bindAllocation(const Allocation *va, uint32_t slot) { +void Script::bindAllocation(const Allocation *va, uint32_t slot) const { rsScriptBindAllocation(mRS->mContext, getID(), BaseObj::getObjID(va), slot); } -void Script::setVar(uint32_t index, const BaseObj *o) { +void Script::setVar(uint32_t index, const BaseObj *o) const { rsScriptSetVarObj(mRS->mContext, getID(), index, (o == NULL) ? 0 : o->getID()); } -void Script::setVar(uint32_t index, const void *v, size_t len) { +void Script::setVar(uint32_t index, const void *v, size_t len) const { rsScriptSetVarV(mRS->mContext, getID(), index, v, len); } |