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

Conversation

knopp
Copy link
Member

@knopp knopp commented Feb 24, 2022

Fixes flutter/flutter#98739

If PhysicalShapeLayer clip_behavior_ is set to Clip::none, the paint bounds after preroll should include bounds of child layers as well. Otherwise the bounds are calculated incorrectly and the layer may be culled during painting when it shouldn't.

If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on
    writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@knopp knopp requested review from iskakaushik and flar February 24, 2022 15:11
Copy link
Contributor

@iskakaushik iskakaushik left a comment

Choose a reason for hiding this comment

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

LGTM

@knopp knopp force-pushed the fix_physical_shape_layer_paint_bounds branch from 3332531 to 49571ab Compare February 24, 2022 19:04
Copy link
Contributor

@flar flar left a comment

Choose a reason for hiding this comment

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

Wow, that must have caused a bunch of problems! Can we scan for uninitialized SkRects?

I noticed that there is one in the ::Diff method, but it is initialized by the code that follows it so it is not a bug. Perhaps a ?: initializer rather than declaring it and using if/else might emphasize that it is really being initialized? (just a throwing-code-at-the-wall suggestion)

@iskakaushik iskakaushik merged commit 77f5b69 into flutter:main Feb 24, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 26, 2022
itsjustkevin pushed a commit to itsjustkevin/engine that referenced this pull request Feb 28, 2022
…1656)

* Fix PhysicalShapeLayer paint bounds with clipping disabled

* Add missing SkRect initialization
itsjustkevin added a commit that referenced this pull request Feb 28, 2022
* Conditionally call FlutterViewDestroyOverlaySurfaces (#31464)

* Fix PhysicalShapeLayer paint bounds with clipping disabled (#31656)

* Fix PhysicalShapeLayer paint bounds with clipping disabled

* Add missing SkRect initialization

* 'add branch flutter-2.8-candidate.16 to enabled_branches in .ci.yaml'

* remove branch ref

Co-authored-by: Emmanuel Garcia <[email protected]>
Co-authored-by: Matej Knopp <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ios][regression] Visual glitch when scrolling a list in a Scaffold that has a Material and Container as bottomNavigationBar
3 participants