From: Vikas Kumar Agrawal Date: Wed, 19 Dec 2018 16:54:48 +0000 (+0530) Subject: Fix image util deprecated API X-Git-Tag: submit/tizen/20181220.184851^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_8.0;p=profile%2Fmobile%2Fapps%2Fnative%2Fmemo.git Fix image util deprecated API Change-Id: I077c3d785adf492a1844f9db8b4139d3699efe78 --- diff --git a/lib-common/src/Common/ImageData.cpp b/lib-common/src/Common/ImageData.cpp index 01933c9..73d8f42 100644 --- a/lib-common/src/Common/ImageData.cpp +++ b/lib-common/src/Common/ImageData.cpp @@ -117,7 +117,6 @@ bool ImageData::resize(unsigned long width, unsigned long height, ResultCallback double ratio = getResizeRatio(width, height); image_util_transform_create(&m_Transform); - image_util_transform_set_hardware_acceleration(m_Transform, true); image_util_transform_set_resolution(m_Transform, m_Width * ratio, m_Height * ratio); int err = image_util_transform_run(m_Transform, m_Packet, makeCallbackWithLastParam(&ImageData::onFinished), this); if (err != IMAGE_UTIL_ERROR_NONE) { @@ -152,7 +151,6 @@ bool ImageData::crop(unsigned long width, unsigned long height, ResultCallback c m_OnResult = std::move(callback); image_util_transform_create(&m_Transform); - image_util_transform_set_hardware_acceleration(m_Transform, true); image_util_transform_set_crop_area(m_Transform, (m_Width - width) / 2, (m_Height - height) / 2, (m_Width + width) / 2, (m_Height + height) / 2);