blob: d4a64a08cc3fce426a4a59b9c72f62f9b4e1a781 [file] [log] [blame]
#ifndef ANDROID_RENDERSCRIPT_SCRIPTGROUP2_H_
#define ANDROID_RENDERSCRIPT_SCRIPTGROUP2_H_
#include "rsScriptGroupBase.h"
#include <list>
#include <string>
namespace android {
namespace renderscript {
class Closure;
class Context;
class ScriptGroup2 : public ScriptGroupBase {
public:
/*
TODO:
Inputs and outputs are set and retrieved in Java runtime.
They are opaque in the C++ runtime.
For better compiler optimizations (of a script group), we need to include
input and output information in the C++ runtime.
*/
ScriptGroup2(Context* rsc, const char* cacheDir, Closure** closures,
size_t numClosures) :
ScriptGroupBase(rsc), mCacheDir(cacheDir),
mClosures(closures, closures + numClosures) {}
virtual ~ScriptGroup2() {}
virtual SG_API_Version getApiVersion() const { return SG_V2; }
virtual void execute(Context* rsc);
const std::string mCacheDir;
std::list<Closure*> mClosures;
};
} // namespace renderscript
} // namespace android
#endif // ANDROID_RENDERSCRIPT_SCRIPTGROUP2_H_