Loading libs/rs/driver/rsdCore.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -111,7 +111,8 @@ bool rsdHalInit(Context *rsc, uint32_t version_major, uint32_t version_minor) { rsc->mHal.funcs = FunctionTable; RsHal *dc = (RsHal *)calloc(1, sizeof(RsHal)); if (!rsc->mHal.drv) { if (!dc) { LOGE("Calloc for driver hal failed."); return false; } rsc->mHal.drv = dc; Loading libs/rs/rsContext.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -636,6 +636,7 @@ bool Context::initContext(Device *dev, const RsSurfaceConfig *sc) { timerSet(RS_TIMER_INTERNAL); if (!rsdHalInit(this, 0, 0)) { LOGE("Hal init failed"); return false; } mHal.funcs.setPriority(this, mThreadPriority); Loading @@ -650,6 +651,7 @@ bool Context::initContext(Device *dev, const RsSurfaceConfig *sc) { } if (mError != RS_ERROR_NONE) { LOGE("Errors during thread init"); return false; } Loading Loading
libs/rs/driver/rsdCore.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -111,7 +111,8 @@ bool rsdHalInit(Context *rsc, uint32_t version_major, uint32_t version_minor) { rsc->mHal.funcs = FunctionTable; RsHal *dc = (RsHal *)calloc(1, sizeof(RsHal)); if (!rsc->mHal.drv) { if (!dc) { LOGE("Calloc for driver hal failed."); return false; } rsc->mHal.drv = dc; Loading
libs/rs/rsContext.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -636,6 +636,7 @@ bool Context::initContext(Device *dev, const RsSurfaceConfig *sc) { timerSet(RS_TIMER_INTERNAL); if (!rsdHalInit(this, 0, 0)) { LOGE("Hal init failed"); return false; } mHal.funcs.setPriority(this, mThreadPriority); Loading @@ -650,6 +651,7 @@ bool Context::initContext(Device *dev, const RsSurfaceConfig *sc) { } if (mError != RS_ERROR_NONE) { LOGE("Errors during thread init"); return false; } Loading