blob: b58a27ef6e0a4483f6985e825ae484f34fa27a8d [file] [log] [blame]
#ifndef ANDROID_RENDERSCRIPT_SCRIPTGROUP2_H_
#define ANDROID_RENDERSCRIPT_SCRIPTGROUP2_H_
#include "rsScriptGroupBase.h"
#include "rsList.h"
namespace android {
namespace renderscript {
class Closure;
class Context;
class ScriptGroup2 : public ScriptGroupBase {
public:
ScriptGroup2(Context* rsc, const char* name, const char* cacheDir,
Closure** closures, size_t numClosures) :
ScriptGroupBase(rsc), mClosures(closures, closures + numClosures),
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;
};
} // namespace renderscript
} // namespace android
#endif // ANDROID_RENDERSCRIPT_SCRIPTGROUP2_H_