diff options
| author | Yang Ni <yangni@google.com> | 2015-01-12 13:03:40 -0800 |
|---|---|---|
| committer | Yang Ni <yangni@google.com> | 2015-02-02 17:37:03 -0800 |
| commit | da0f069871343119251d6b0586be356dc2146a62 (patch) | |
| tree | 3b3727ac5ff30a598b33a926e2536cc7c6190b05 /rsScriptGroup2.h | |
| parent | f5e39bba1d0e7be4adfa7364d92ba3f541420fdd (diff) | |
| download | android_frameworks_rs-da0f069871343119251d6b0586be356dc2146a62.tar.gz android_frameworks_rs-da0f069871343119251d6b0586be356dc2146a62.tar.bz2 android_frameworks_rs-da0f069871343119251d6b0586be356dc2146a62.zip | |
Runtime support for compiler kernel fusion.
The runtime will start a seperate process to call the new bcc to fuse kernels.
Change-Id: Ia73ea917a126a5055ec97f13d90a5feaafd6a2f5
Diffstat (limited to 'rsScriptGroup2.h')
| -rw-r--r-- | rsScriptGroup2.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/rsScriptGroup2.h b/rsScriptGroup2.h index c759faff..d5142618 100644 --- a/rsScriptGroup2.h +++ b/rsScriptGroup2.h @@ -4,6 +4,7 @@ #include "rsScriptGroupBase.h" #include <list> +#include <string> namespace android { namespace renderscript { @@ -20,13 +21,16 @@ class ScriptGroup2 : public ScriptGroupBase { For better compiler optimizations (of a script group), we need to include input and output information in the C++ runtime. */ - ScriptGroup2(Context* rsc, Closure** closures, size_t numClosures) : - ScriptGroupBase(rsc), mClosures(closures, closures + numClosures) {} + 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; }; |
