Skip to content

Update the golden image comparator to handle read-only image ByteData views#61406

Merged
fluttergithubbot merged 1 commit intoflutter:masterfrom
jason-simmons:goldens_read_only_image
Jul 14, 2020
Merged

Update the golden image comparator to handle read-only image ByteData views#61406
fluttergithubbot merged 1 commit intoflutter:masterfrom
jason-simmons:goldens_read_only_image

Conversation

@jason-simmons
Copy link
Copy Markdown
Member

The engine is now wrapping image byte data in an UnmodifiableByteDataView
(see flutter/engine#19504). The golden image
comparator must make a copy before modifying the buffer.

@jason-simmons jason-simmons requested a review from Piinks as a code owner July 14, 2020 01:28
@fluttergithubbot fluttergithubbot added a: tests "flutter test", flutter_test, or one of our tests framework flutter/packages/flutter repository. See also f: labels. labels Jul 14, 2020
@fluttergithubbot
Copy link
Copy Markdown
Contributor

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

Copy link
Copy Markdown
Contributor

@nturgut nturgut left a comment

Choose a reason for hiding this comment

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

LGTM to unblock the roll.

… views

The engine is now wrapping image byte data in an UnmodifiableByteDataView
(see flutter/engine#19504).  The golden image
comparator must make a copy before modifying the buffer.
@fluttergithubbot fluttergithubbot merged commit af47958 into flutter:master Jul 14, 2020
Pragya007 pushed a commit to Pragya007/flutter that referenced this pull request Aug 11, 2020
mingwandroid pushed a commit to mingwandroid/flutter that referenced this pull request Sep 6, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

a: tests "flutter test", flutter_test, or one of our tests framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants