diff options
| author | 2013-08-20 18:27:00 +0000 | |
|---|---|---|
| committer | 2013-08-20 18:27:01 +0000 | |
| commit | cf8e6778c28319b6c5357a43831ebf1a41b56e96 (patch) | |
| tree | c2e828cb4427a6ed72c057c8a12dc5cf2653aa0f /libs/hwui/FontRenderer.cpp | |
| parent | ea18a8db653a0846187aba6116936b3738fa3f33 (diff) | |
| parent | d8c8aaa82ef90f30df647ca42453e953ee52af0f (diff) | |
Merge "Handle updates to C++ API." into klp-dev
Diffstat (limited to 'libs/hwui/FontRenderer.cpp')
| -rw-r--r-- | libs/hwui/FontRenderer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/hwui/FontRenderer.cpp b/libs/hwui/FontRenderer.cpp index cb6bb2e3694d..22b1485eaa45 100644 --- a/libs/hwui/FontRenderer.cpp +++ b/libs/hwui/FontRenderer.cpp @@ -737,7 +737,7 @@ void FontRenderer::blurImage(uint8_t** image, int32_t width, int32_t height, int } mRsElement = RSC::Element::A_8(mRs); - mRsScript = new RSC::ScriptIntrinsicBlur(mRs, mRsElement); + mRsScript = RSC::ScriptIntrinsicBlur::create(mRs, mRsElement); } RSC::sp<const RSC::Type> t = RSC::Type::create(mRs, mRsElement, width, height, 0); @@ -749,7 +749,8 @@ void FontRenderer::blurImage(uint8_t** image, int32_t width, int32_t height, int outImage); mRsScript->setRadius(radius); - mRsScript->blur(ain, aout); + mRsScript->setInput(ain); + mRsScript->forEach(aout); // replace the original image's pointer, avoiding a copy back to the original buffer free(*image); |