diff options
| author | Yang Ni <yangni@google.com> | 2015-04-02 17:48:28 -0700 |
|---|---|---|
| committer | Yang Ni <yangni@google.com> | 2015-04-13 15:31:05 -0700 |
| commit | 8b94222cc8ea83c780c98b22dd1921f392a2bcf6 (patch) | |
| tree | 781a5649926b31401cf54047120df71607236959 /rsScriptGroup2.h | |
| parent | 69b65033152250cb7ad27f452fa7de41114c9f18 (diff) | |
| download | android_frameworks_rs-8b94222cc8ea83c780c98b22dd1921f392a2bcf6.tar.gz android_frameworks_rs-8b94222cc8ea83c780c98b22dd1921f392a2bcf6.tar.bz2 android_frameworks_rs-8b94222cc8ea83c780c98b22dd1921f392a2bcf6.zip | |
Added a name to ScriptGroup2
Implemented in the runtime and CPU driver the new script group name.
Code caching is not implemented yet, and to be added in another CL.
Change-Id: I46e351c8412740512f56b7915b14f36183c6eeaf
Diffstat (limited to 'rsScriptGroup2.h')
| -rw-r--r-- | rsScriptGroup2.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rsScriptGroup2.h b/rsScriptGroup2.h index bc89df89..b58a27ef 100644 --- a/rsScriptGroup2.h +++ b/rsScriptGroup2.h @@ -13,16 +13,17 @@ class Context; class ScriptGroup2 : public ScriptGroupBase { public: - ScriptGroup2(Context* rsc, const char* cacheDir, Closure** closures, - size_t numClosures) : + ScriptGroup2(Context* rsc, const char* name, const char* cacheDir, + Closure** closures, size_t numClosures) : ScriptGroupBase(rsc), mClosures(closures, closures + numClosures), - mCacheDir(cacheDir) {} + mName(name), mCacheDir(cacheDir) {} virtual ~ScriptGroup2(); virtual SG_API_Version getApiVersion() const { return SG_V2; } virtual void execute(Context* rsc); List<Closure*> mClosures; + const char* mName; const char* mCacheDir; }; |
