mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-12-21 06:10:09 +00:00
rsfilter unmarshalling bugfix
Signed-off-by: lee <liwei576@huawei.com>
This commit is contained in:
parent
2bc81e75e6
commit
dd575f3b49
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user