diff options
Diffstat (limited to 'cpu_ref/rsCpuScript.cpp')
| -rw-r--r-- | cpu_ref/rsCpuScript.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/cpu_ref/rsCpuScript.cpp b/cpu_ref/rsCpuScript.cpp index fe51eecc..c88f03cb 100644 --- a/cpu_ref/rsCpuScript.cpp +++ b/cpu_ref/rsCpuScript.cpp @@ -386,7 +386,6 @@ RsdCpuScriptImpl::RsdCpuScriptImpl(RsdCpuReferenceImpl *ctx, const Script *s) { mFieldIsObject = nullptr; mForEachSignatures = nullptr; #else - mCompilerContext = nullptr; mCompilerDriver = nullptr; mExecutable = nullptr; #endif @@ -414,17 +413,9 @@ bool RsdCpuScriptImpl::init(char const *resName, char const *cacheDir, #ifndef RS_COMPATIBILITY_LIB bool useRSDebugContext = false; - mCompilerContext = nullptr; mCompilerDriver = nullptr; mExecutable = nullptr; - mCompilerContext = new bcc::BCCContext(); - if (mCompilerContext == nullptr) { - ALOGE("bcc: FAILS to create compiler context (out of memory)"); - mCtx->unlockMutex(); - return false; - } - mCompilerDriver = new bcc::RSCompilerDriver(); if (mCompilerDriver == nullptr) { ALOGE("bcc: FAILS to create compiler driver (out of memory)"); @@ -1204,9 +1195,6 @@ RsdCpuScriptImpl::~RsdCpuScriptImpl() { } } - if (mCompilerContext) { - delete mCompilerContext; - } if (mCompilerDriver) { delete mCompilerDriver; } |
