mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-27 01:03:08 +00:00
imageAnimator性能优化
Signed-off-by: zhangwenbin <zhangwenbin35@h-partners.com>
This commit is contained in:
parent
a358c5af96
commit
d52e39e277
@ -307,10 +307,10 @@ void ImageAnimatorPattern::OnModifyDone()
|
||||
CHECK_NULL_VOID(imageTheme);
|
||||
auto renderContext = host->GetRenderContext();
|
||||
CHECK_NULL_VOID(renderContext);
|
||||
if (!renderContext->HasBorderRadius()) {
|
||||
if (!renderContext->HasBorderRadius() && imageTheme->GetCardRadius() > 0.0_vp) {
|
||||
renderContext->UpdateBorderRadius(BorderRadiusProperty(imageTheme->GetCardRadius()));
|
||||
}
|
||||
if (!renderContext->HasClipEdge()) {
|
||||
if (!renderContext->HasClipEdge() && imageTheme->GetClipEdge()) {
|
||||
renderContext->UpdateClipEdge(imageTheme->GetClipEdge());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user