diff options
| author | 2013-08-19 12:04:38 -0700 | |
|---|---|---|
| committer | 2013-08-19 12:07:52 -0700 | |
| commit | d8c8aaa82ef90f30df647ca42453e953ee52af0f (patch) | |
| tree | bceb079beb618fd8122b18b7da7218442e7080f7 /libs/hwui/FontRenderer.cpp | |
| parent | 7e7f8d48a62a972ad18af2d222a011a1dd0c8928 (diff) | |
Handle updates to C++ API.
Change-Id: I8ab17cbae3a9a4cc3c3202b8277d49f27bdf1fec
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); |