Repository navigation
[CP-stable] [Impeller] Fix positioning of text shadow masks - #188766
auto-submit[bot] merged 1 commit into
Conversation
|
This pull request was opened from and to a release candidate branch. This should only be done as part of the official Flutter release process. If you are attempting to make a regular contribution to the Flutter project, please close this PR and follow the instructions at Tree Hygiene for detailed instructions on contributing to Flutter. Reviewers: Use caution before merging pull requests to release branches. Ensure the proper procedure has been followed. |
There was a problem hiding this comment.
Code Review
This pull request updates Impeller's text rendering by baking the text position translation directly into the entity's transform in Canvas::DrawTextFrame, rather than applying it later in TextContents. A new unit test is added to verify text rendering with shadows and positioning. The feedback suggests removing the now-unused position parameter from ComputeVertexData and deleting the unused position_ member variable in TextContents to clean up the API.
83675ed
into
flutter:flutter-3.44-candidate.0
…188766) This pull request is created manually per (https://github.com/flutter/flutter/blob/main/docs/releases/Flutter-Cherrypick-Process.md#automatically-creates-a-cherry-pick-request) Please fill in the form below, and a flutter domain expert will evaluate this cherry pick request. ### Issue Link: What is the link to the issue this cherry-pick is addressing? flutter#188035 ### Impact Description: Apps that use shadows on Text will have those shadows separate from the text and appear at the coordinate origin of the nearest widget that wraps things with some kind of SaveLayer or engine layer. ### Changelog Description: Explain this cherry pick: * Ensures that shadows track the position of text even when enclosed in a SaveLayer * Prior to this fix, those shadows would appear at the origin of such a SaveLayer - typically the upper or lower corner of one of the parent widgets. * This would happen on all platforms. [flutter/188035] When rendering text with shadows, the shadows would appear elsewhere on the screen, separate from the text ### Workaround: No known workarounds exist. ### Risk: What is the risk level of this cherry-pick? ### Test Coverage: Are you confident that your fix is well-tested by automated tests? ### Validation Steps: The golden images created by this PR will verify the code is correct if the shadows on the text appear directly underneath each rendered string.
This pull request is created manually per (https://github.com/flutter/flutter/blob/main/docs/releases/Flutter-Cherrypick-Process.md#automatically-creates-a-cherry-pick-request)
Please fill in the form below, and a flutter domain expert will evaluate this cherry pick request.
Issue Link:
What is the link to the issue this cherry-pick is addressing?
#188035
Impact Description:
Apps that use shadows on Text will have those shadows separate from the text and appear at the coordinate origin of the nearest widget that wraps things with some kind of SaveLayer or engine layer.
Changelog Description:
Explain this cherry pick:
[flutter/188035] When rendering text with shadows, the shadows would appear elsewhere on the screen, separate from the text
Workaround:
No known workarounds exist.
Risk:
What is the risk level of this cherry-pick?
Test Coverage:
Are you confident that your fix is well-tested by automated tests?
Validation Steps:
The golden images created by this PR will verify the code is correct if the shadows on the text appear directly underneath each rendered string.