Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abe55e92 authored by Tim Murray's avatar Tim Murray
Browse files

Handle user-defined cache path for RS.

Change-Id: I92e3346dca331ae6a9dfbe4f95292bc604dfd196
parent 09cee9d2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -733,7 +733,9 @@ void FontRenderer::blurImage(uint8_t** image, int32_t width, int32_t height, int

        if (mRs == 0) {
            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");
            }