am acf7b5d2: am 9dabdaec: Merge "Handle user-defined cache path for RS."

* commit 'acf7b5d24a98dc97b551e205bf7638f47d9304c0':
  Handle user-defined cache path for RS.
This commit is contained in:
Tim Murray
2013-12-18 17:48:22 -08:00
committed by Android Git Automerger

View File

@@ -732,7 +732,9 @@ void FontRenderer::blurImage(uint8_t** image, int32_t width, int32_t height, int
if (mRs == 0) { if (mRs == 0) {
mRs = new RSC::RS(); mRs = new RSC::RS();
if (!mRs->init(RSC::RS_INIT_LOW_LATENCY | RSC::RS_INIT_SYNCHRONOUS)) { // a null path is OK because there are no custom kernels used
// hence nothing gets cached by RS
if (!mRs->init("", RSC::RS_INIT_LOW_LATENCY | RSC::RS_INIT_SYNCHRONOUS)) {
ALOGE("blur RS failed to init"); ALOGE("blur RS failed to init");
} }