diff options
author | David Gross <dgross@google.com> | 2015-05-29 21:45:57 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-05-29 21:45:57 +0000 |
commit | c5b28f7626368e0ad5dc9ba5223c4a25b6e8b8e5 (patch) | |
tree | 5c39608adc0adcd19cf76e1db3c39dd485b0b93d /cpu_ref/rsCpuScript.cpp | |
parent | b59f313ddb0e05d13c270862c62ac1fa2a5bb855 (diff) | |
parent | b043df0676fef226336deb3a00ead2f31e02343f (diff) | |
download | rs-c5b28f7626368e0ad5dc9ba5223c4a25b6e8b8e5.tar.gz |
Merge "Remove dead uses of RSCompilerDriver and of compiler callbacks."
Diffstat (limited to 'cpu_ref/rsCpuScript.cpp')
-rw-r--r-- | cpu_ref/rsCpuScript.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/cpu_ref/rsCpuScript.cpp b/cpu_ref/rsCpuScript.cpp index 40f1a655..8c6e5843 100644 --- a/cpu_ref/rsCpuScript.cpp +++ b/cpu_ref/rsCpuScript.cpp @@ -25,9 +25,7 @@ #else #include "rsCppUtils.h" - #include <bcc/BCCContext.h> #include <bcc/Config/Config.h> - #include <bcc/Renderscript/RSCompilerDriver.h> #include <bcinfo/MetadataExtractor.h> #include <cutils/properties.h> @@ -230,11 +228,6 @@ RsdCpuScriptImpl::RsdCpuScriptImpl(RsdCpuReferenceImpl *ctx, const Script *s) { mScriptSO = nullptr; -#ifndef RS_COMPATIBILITY_LIB - mCompilerDriver = nullptr; -#endif - - mRoot = nullptr; mRootExpand = nullptr; mInit = nullptr; @@ -304,22 +297,6 @@ bool RsdCpuScriptImpl::init(char const *resName, char const *cacheDir, #ifndef RS_COMPATIBILITY_LIB bool useRSDebugContext = false; - mCompilerDriver = nullptr; - - mCompilerDriver = new bcc::RSCompilerDriver(); - if (mCompilerDriver == nullptr) { - ALOGE("bcc: FAILS to create compiler driver (out of memory)"); - mCtx->unlockMutex(); - return false; - } - - // Run any compiler setup functions we have been provided with. - RSSetupCompilerCallback setupCompilerCallback = - mCtx->getSetupCompilerCallback(); - if (setupCompilerCallback != nullptr) { - setupCompilerCallback(mCompilerDriver); - } - bcinfo::MetadataExtractor bitcodeMetadata((const char *) bitcode, bitcodeSize); if (!bitcodeMetadata.extract()) { ALOGE("Could not extract metadata from bitcode"); @@ -330,7 +307,6 @@ bool RsdCpuScriptImpl::init(char const *resName, char const *cacheDir, const char* core_lib = findCoreLib(bitcodeMetadata, (const char*)bitcode, bitcodeSize); if (mCtx->getContext()->getContextType() == RS_CONTEXT_TYPE_DEBUG) { - mCompilerDriver->setDebugContext(true); useRSDebugContext = true; } @@ -879,12 +855,6 @@ const char* RsdCpuScriptImpl::getFieldName(uint32_t slot) const { } RsdCpuScriptImpl::~RsdCpuScriptImpl() { -#ifndef RS_COMPATIBILITY_LIB - if (mCompilerDriver) { - delete mCompilerDriver; - } -#endif - if (mScriptExec != nullptr) { delete mScriptExec; } |