Skip to content

Conversation

@Hparty
Copy link
Collaborator

@Hparty Hparty commented Jan 25, 2026

功能描述

为 RootLayer 添加了背景模糊时的背景颜色渲染支持。

主要变更

  • RootLayer::drawLayer 方法中添加了对 args.blurBackground 的处理
  • 当存在背景模糊时,确保背景颜色也被正确渲染到模糊背景画布上

测试用例

  • 新增 LayerTest.RootLayerBackgroundColorWithBlurBackground 测试用例
  • 使用基准图像验证背景模糊与背景颜色的正确混合效果
  • 测试场景包括部分覆盖底层内容和部分覆盖纯背景的复合情况

代码变更

  • src/layers/RootLayer.cpp: 添加背景模糊处理逻辑
  • test/src/LayerTest.cpp: 添加相应测试用例
  • test/baseline/version.json: 更新基准版本

@domchen domchen merged commit 6669e57 into main Jan 25, 2026
9 checks passed
@domchen domchen deleted the feature/partyhuang_rootlayer_blur_background branch January 25, 2026 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants