From d1c8c1292c4273442c052d0899f3375913a51fc5 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Wed, 14 Mar 2012 15:36:02 -0700 Subject: Fix minor C++ api issues. Change-Id: I30e12938be5da52b2d952db57a51b4deb5e27239 --- libs/rs/Script.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libs/rs/Script.cpp') 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); } -- cgit v1.2.3-59-g8ed1b