1 #ifndef ANDROID_RENDERSCRIPT_SCRIPTGROUP2_H_
2 #define ANDROID_RENDERSCRIPT_SCRIPTGROUP2_H_
3 
4 #include "rsScriptGroupBase.h"
5 
6 #include "rsList.h"
7 
8 namespace android {
9 namespace renderscript {
10 
11 class Closure;
12 class Context;
13 
14 class ScriptGroup2 : public ScriptGroupBase {
15  public:
ScriptGroup2(Context * rsc,const char * name,const char * cacheDir,Closure ** closures,size_t numClosures)16     ScriptGroup2(Context* rsc, const char* name, const char* cacheDir,
17                  Closure** closures, size_t numClosures) :
18         ScriptGroupBase(rsc), mClosures(closures, closures + numClosures),
19         mName(name), mCacheDir(cacheDir) {}
20     virtual ~ScriptGroup2();
21 
getApiVersion()22     virtual SG_API_Version getApiVersion() const { return SG_V2; }
23     virtual void execute(Context* rsc);
24 
25     List<Closure*> mClosures;
26     const char* mName;
27     const char* mCacheDir;
28 };
29 
30 }  // namespace renderscript
31 }  // namespace android
32 
33 #endif  // ANDROID_RENDERSCRIPT_SCRIPTGROUP2_H_
34