Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

[Impeller] Clip the DrawImageRect source rect to the bounds of the image #56183

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

jason-simmons
Copy link
Member

The destination rect will then be updated to a mapping of the clipped source rect.

This matches the behavior of Skia's SkCanvas::drawImageRect.

Fixes flutter/flutter#157167

The destination rect will then be updated to a mapping of the clipped
source rect.

This matches the behavior of Skia's SkCanvas::drawImageRect.

Fixes flutter/flutter#157167
Copy link
Member

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@flutter-dashboard
Copy link

Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change).

If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review.

Changes reported for pull request #56183 at sha c926fc2

@jason-simmons jason-simmons added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 29, 2024
@auto-submit auto-submit bot merged commit 29389af into flutter:main Oct 29, 2024
33 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 29, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Oct 29, 2024
…157820)

flutter/engine@725c8e4...795b549

2024-10-29 98614782+auto-submit[bot]@users.noreply.github.com Reverts "[Impeller] disable AHBs on devices that were upgraded to 29. (#56202)" (flutter/engine#56212)
2024-10-29 aam@google.com Remove --time run of gen_snapshot. (flutter/engine#56204)
2024-10-29 jason-simmons@users.noreply.github.com [Impeller] Clip the DrawImageRect source rect to the bounds of the image (flutter/engine#56183)
2024-10-29 jonahwilliams@google.com [Impeller] disable Maleoon GPU from using Vulkan. (flutter/engine#56203)
2024-10-29 jonahwilliams@google.com [Impeller] disable AHBs on devices that were upgraded to 29. (flutter/engine#56202)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC chinmaygarde@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
nick9822 pushed a commit to nick9822/flutter that referenced this pull request Dec 18, 2024
…age (flutter/engine#56183)

The destination rect will then be updated to a mapping of the clipped source rect.

This matches the behavior of Skia's SkCanvas::drawImageRect.

Fixes flutter#157167
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
autosubmit Merge PR when tree becomes green via auto submit App e: impeller will affect goldens
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Impeller] Render bug canvas.drawImageRect when src param is bigger than image
2 participants