diff options
| author | David Gross <dgross@google.com> | 2016-06-01 14:45:47 -0700 |
|---|---|---|
| committer | David Gross <dgross@google.com> | 2016-06-10 10:45:29 -0700 |
| commit | ae2ec3febedfc29376b9104413fb4042028f1265 (patch) | |
| tree | 36d8f632058bc158f48b4e148bcf41c177802d1b /cpp/Script.cpp | |
| parent | 8e70791ff732ce244077310bdfdaf75dc19baabc (diff) | |
Delete simple reduction implementation.
Bug: 27298560
Change-Id: I8c3d568e98aaf0b7d86881c985d13ed5b8e95338
Diffstat (limited to 'cpp/Script.cpp')
| -rw-r--r-- | cpp/Script.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/cpp/Script.cpp b/cpp/Script.cpp index acea0c8a..52933f27 100644 --- a/cpp/Script.cpp +++ b/cpp/Script.cpp @@ -36,21 +36,6 @@ void Script::forEach(uint32_t slot, sp<const Allocation> ain, sp<const Allocatio tryDispatch(mRS, RS::dispatch->ScriptForEach(mRS->getContext(), getID(), slot, in_id, out_id, usr, usrLen, nullptr, 0)); } -void Script::reduce(uint32_t slot, sp<const Allocation> ain, sp<const Allocation> aout, - const RsScriptCall *sc) const { - if (RS::dispatch->ScriptReduce == nullptr) { - mRS->throwError(RS_ERROR_RUNTIME_ERROR, "Reduce is not supported at the current API level"); - return; - } - if (ain == nullptr || aout == nullptr) { - mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Both ain and aout are required to be non-null."); - return; - } - void *in_id = BaseObj::getObjID(ain); - void *out_id = BaseObj::getObjID(aout); - tryDispatch(mRS, RS::dispatch->ScriptReduce(mRS->getContext(), getID(), slot, in_id, out_id, sc, sc == nullptr ? 0 : sizeof(*sc))); -} - Script::Script(void *id, sp<RS> rs) : BaseObj(id, rs) { } @@ -71,4 +56,3 @@ void Script::setVar(uint32_t index, const void *v, size_t len) const { void Script::FieldBase::init(sp<RS> rs, uint32_t dimx, uint32_t usages) { mAllocation = Allocation::createSized(rs, mElement, dimx, RS_ALLOCATION_USAGE_SCRIPT | usages); } - |
