rsfilter unmarshalling bugfix

Signed-off-by: lee <liwei576@huawei.com>
This commit is contained in:
lee 2022-02-16 10:23:47 +08:00
parent 2bc81e75e6
commit dd575f3b49

View File

@ -191,11 +191,15 @@ bool RSMarshallingHelper::Unmarshalling(Parcel& parcel, std::shared_ptr<RSFilter
float blurRadiusY;
success &= parcel.ReadFloat(blurRadiusX);
success &= parcel.ReadFloat(blurRadiusY);
if (success) {
val = RSFilter::CreateBlurFilter(blurRadiusX, blurRadiusY);
}
break;
}
default:
default: {
val = nullptr;
break;
}
}
return success;
}