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

Conversation

@liyuqian
Copy link
Contributor

This avoids the possible matrix mismatch between RasterCache::Get and
RasterCacheResult::draw. See
#17790 for an example that tries
to fix an earlier mismatch.

@liyuqian liyuqian requested review from flar and jason-simmons April 17, 2020 21:47
@auto-assign auto-assign bot requested a review from iskakaushik April 17, 2020 21:47
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.

LGTM

@liyuqian liyuqian force-pushed the raster_cache_matrix branch from 5981e25 to e25f277 Compare April 21, 2020 04:48
@flar
Copy link
Contributor

flar commented Apr 22, 2020

The most recent commit had the description that it was tightening the assert when, in fact, it was loosening it. Also, why was that change made?

This avoids the possible matrix mismatch between RasterCache::Get and
RasterCacheResult::draw. See
flutter#17790 for an example that tries
to fix an earlier mismatch.
This reverts commit b428ca1.

The rare floating point error may cause the 1-off difference. Although
in most cases, they should exactly match.
@liyuqian liyuqian force-pushed the raster_cache_matrix branch from 3742eba to 5cf9804 Compare April 22, 2020 17:22
@liyuqian
Copy link
Contributor Author

@flar : do you mean the Revert "Tighten the assert" commit? The reason of that revert is in the commit description:

The rare floating point error may cause the 1-off difference. Although
in most cases, they should exactly match.

@flar
Copy link
Contributor

flar commented Apr 22, 2020

Still LGTM...

liyuqian added a commit that referenced this pull request May 1, 2020
This reverts commit b5aedb3 and relands #17712.

Fixes flutter/flutter#53288 and flutter/flutter#41654.

Together with #17791, this reland addresses some of Jim's concerns in the original PR #17712.

The major part of this PR is still the same as the original PR, and the performance / golden image impacts should be the same.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants