summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2013-12-13 12:57:36 -0800
committerTim Murray <timmurray@google.com>2013-12-13 12:58:07 -0800
commitabe55e92241fd9a19885f7b11db8d3043ab60c61 (patch)
tree0a8bc16ccde0995e9dc46fa31651bfdc7ce6c946 /libs
parent09cee9d21f201b75241f6171728c3afb0e7b3139 (diff)
downloadframeworks_base-abe55e92241fd9a19885f7b11db8d3043ab60c61.zip
frameworks_base-abe55e92241fd9a19885f7b11db8d3043ab60c61.tar.gz
frameworks_base-abe55e92241fd9a19885f7b11db8d3043ab60c61.tar.bz2
Handle user-defined cache path for RS.
Change-Id: I92e3346dca331ae6a9dfbe4f95292bc604dfd196
Diffstat (limited to 'libs')
-rw-r--r--libs/hwui/FontRenderer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/hwui/FontRenderer.cpp b/libs/hwui/FontRenderer.cpp
index 48613fe..f7493a3 100644
--- a/libs/hwui/FontRenderer.cpp
+++ b/libs/hwui/FontRenderer.cpp
@@ -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");
}