diff options
| author | Yang Ni <yangni@google.com> | 2015-02-20 15:20:00 -0800 |
|---|---|---|
| committer | Yang Ni <yangni@google.com> | 2015-03-10 15:26:25 -0700 |
| commit | 062c287f573ecc06c38ee4295e5627e12c52ac3d (patch) | |
| tree | fc9fc1581ac0cc8a68d107575522a388842b21c0 /cpu_ref/rsCpuScript.cpp | |
| parent | 30940f637bce187126a667bb3b979978d7067a8b (diff) | |
Runtime support for Script Group as single module
Also made two other cleanups:
- Changed KernelID/InvokeID into IDBase in class Closure
Rather than having two fields in class Closure, one of type ScriptKernelID and
the other InovkeID, use a single field of the common base class IDBase. Added a
boolean field to indicate whether it is kernel or invoke, since -fno-rtti is on.
- Removed user pointer from CPU closure
Change-Id: I5553f86b2e58325f85649078d48685a38f12d62f
Diffstat (limited to 'cpu_ref/rsCpuScript.cpp')
| -rw-r--r-- | cpu_ref/rsCpuScript.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpu_ref/rsCpuScript.cpp b/cpu_ref/rsCpuScript.cpp index ae7e5970..481c54d9 100644 --- a/cpu_ref/rsCpuScript.cpp +++ b/cpu_ref/rsCpuScript.cpp @@ -855,6 +855,10 @@ void RsdCpuScriptImpl::setGlobalObj(uint32_t slot, ObjectBase *data) { rsrSetObject(mCtx->getContext(), (rs_object_base *)destPtr, data); } +const char* RsdCpuScriptImpl::getFieldName(uint32_t slot) const { + return mScriptExec->getFieldName(slot); +} + RsdCpuScriptImpl::~RsdCpuScriptImpl() { #ifndef RS_COMPATIBILITY_LIB if (mCompilerDriver) { |
