rsScriptGroup2.h 849 B

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