diff options
author | Tim Murray <timmurray@google.com> | 2013-12-13 12:57:36 -0800 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2013-12-18 17:04:04 -0800 |
commit | 804ff38bff2fbb0ee258b13b4bb66eb33d565724 (patch) | |
tree | fcd1e61dc3c3ef0c59c5a4b9c59ef0d91a35122e /libs | |
parent | 7f8c70a1a48df91ee5541b03dc380c08ab6ebf42 (diff) | |
download | frameworks_base-804ff38bff2fbb0ee258b13b4bb66eb33d565724.zip frameworks_base-804ff38bff2fbb0ee258b13b4bb66eb33d565724.tar.gz frameworks_base-804ff38bff2fbb0ee258b13b4bb66eb33d565724.tar.bz2 |
Handle user-defined cache path for RS.
Change-Id: I92e3346dca331ae6a9dfbe4f95292bc604dfd196
Diffstat (limited to 'libs')
-rw-r--r-- | libs/hwui/FontRenderer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/hwui/FontRenderer.cpp b/libs/hwui/FontRenderer.cpp index 00e7870..0be17ff 100644 --- a/libs/hwui/FontRenderer.cpp +++ b/libs/hwui/FontRenderer.cpp @@ -732,7 +732,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"); } |