From d8c8aaa82ef90f30df647ca42453e953ee52af0f Mon Sep 17 00:00:00 2001 From: Tim Murray Date: Mon, 19 Aug 2013 12:04:38 -0700 Subject: Handle updates to C++ API. Change-Id: I8ab17cbae3a9a4cc3c3202b8277d49f27bdf1fec --- libs/hwui/FontRenderer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libs/hwui/FontRenderer.cpp') 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 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); -- cgit v1.2.3-59-g8ed1b