diff options
| author | 2013-08-20 11:34:04 -0700 | |
|---|---|---|
| committer | 2013-08-20 11:34:04 -0700 | |
| commit | ede1deaa88b546188808a8c6ef7dafb087594753 (patch) | |
| tree | 551cfd8bdf1b47565871a0cfb7ac64f569e87d41 /libs/hwui/FontRenderer.cpp | |
| parent | 8742fa367eeebbc0c5d027a92e7197b554bb7be1 (diff) | |
| parent | 816f3058bdd7b888965022888e4a789ea967f444 (diff) | |
am 816f3058: am cf8e6778: Merge "Handle updates to C++ API." into klp-dev
* commit '816f3058bdd7b888965022888e4a789ea967f444':
Handle updates to C++ API.
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 22f71551a09f..1fb71ead4958 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); |