diff options
| author | Yang Ni <yangni@google.com> | 2014-07-25 13:51:09 -0700 |
|---|---|---|
| committer | Yang Ni <yangni@google.com> | 2014-07-29 09:20:34 -0700 |
| commit | 5f6f16fe612e1c30732becc66205500994889ac9 (patch) | |
| tree | 1b37966eaa430d485e13471bc97a967658cbc68b /rsScriptGroup.h | |
| parent | 3a5475c63ebfc8de29fafd84def9dacafaff4ca6 (diff) | |
| download | android_frameworks_rs-5f6f16fe612e1c30732becc66205500994889ac9.tar.gz android_frameworks_rs-5f6f16fe612e1c30732becc66205500994889ac9.tar.bz2 android_frameworks_rs-5f6f16fe612e1c30732becc66205500994889ac9.zip | |
Validate input/output for a ScriptGroup.
If a script group requires input or output allocations, make sure
they are set before starting the execution of the script group.
If any allocation is missing, skip the execution and set a bad
value error with a message.
Change-Id: I7ee2da96aca3e6c9820225e6b2c39cb9378cb42f
Diffstat (limited to 'rsScriptGroup.h')
| -rw-r--r-- | rsScriptGroup.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rsScriptGroup.h b/rsScriptGroup.h index d51b1db6..af98b50a 100644 --- a/rsScriptGroup.h +++ b/rsScriptGroup.h @@ -103,6 +103,10 @@ private: bool calcOrderRecurse(Node *n, int depth); bool calcOrder(); Node * findNode(Script *s) const; + // Check if input/output Allocations are correctly set for a ScriptGroup. + // Send any error back to the client (app). Called before the ScriptGroup + // executes. Skips the exeuction if validation fails. + bool validateInputAndOutput(Context *); ScriptGroup(Context *); }; |
