8000 Add manual test for color space rendering behavior by mattsarett · Pull Request #10000 · flutter/flutter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add manual test for color space rendering behavior #10000

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 18, 2017

Conversation

mattsarett
Copy link
Contributor

The following content should render with noticeable differences depending on whether Flutter is using color correct Skia.

body: new ListView(
padding: new EdgeInsets.all(5.0),
children: <Widget>[
new Image.asset('packages/flutter_gallery_assets/ali_connors.jpg', fit: BoxFit.contain),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are placeholders for the actual images that I want to use. Can you instruct on how to add images to flutter_gallery_assets?

@mattsarett
Copy link
Contributor Author

@chinmaygarde

@mattsarett mattsarett requested a review from HansMuller May 11, 2017 21:32
@mattsarett
Copy link
Contributor Author

#8152

@HansMuller
Copy link
Contributor

This manual test should really be a standalone app in dev/manual_tests, not a page in the gallery demo.

Copy link
Contributor
@HansMuller HansMuller left a comment

Choose a reason for hiding this comment

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

I left a comment already about moving the code to our manual tests directory; adding this comment just in case you were waiting for a review signal from github

@mattsarett
Copy link
Contributor Author

Got it thanks, I'll move this to a test app.

@mattsarett
Copy link
Contributor Author

@HansMuller Are you able to explain how to run the files in the dev/manual_tests?

@abarth
Copy link
Contributor
abarth commented May 12, 2017
cd dev/manual_tests
flutter run page_view.dart

@mattsarett
Copy link
Contributor Author

I'm running in to an error:

msarett@msarett1:~/flutter/flutter/dev/manual_tests$ ../../bin/flutter run page_view.dart
Launching page_view.dart on Pixel XL in debug mode...
The build process for Android has changed, and the current project configuration
is no longer valid. Please consult

https://github.com/flutter/flutter/wiki/Upgrading-Flutter-projects-to-build-with-gradle

for details on how to upgrade the project.

@reed-at-google
Copy link

very exciting.

@eseidelGoogle
Copy link
Contributor

@mattsarett do you have more than one copy of flutter installed? That message is very old, and would suggest that you have a newer copy of flutter in your path than the repository you're working from. I say that, because the example you're working from is flutter_gallery, which certainly should have been upgraded already to the new android build setup? :)

@mattsarett
Copy link
Contributor Author

@eseidelGoogle I'm no longer working in Flutter gallery because I'm hoping to move my test code into dev/manual_tests. Would that make a difference? I'll go ahead and see if I seem to be out of date anywhere.

@eseidelGoogle
Copy link
Contributor

Ah, dev/manual_tests is probably out of date, yes. @jason-simmons or @yjbanov could probably help us upgrade that for you.

@mattsarett
Copy link
Contributor Author

Ah got it thanks, I appreciate the help!

@yjbanov
Copy link
Contributor
yjbanov commented May 13, 2017

FYI: #10057 is fixing the upgrade issue

@mattsarett mattsarett changed the title Add slide to Flutter gallery to test color space rendering behavior Add manual test for color space rendering behavior May 15, 2017
@mattsarett
Copy link
Contributor Author

Thanks Jason and Yegor! This should be ready after #10057 lands.

@mattsarett
Copy link
Contributor Author

@HansMuller please take a look. I've moved the test into dev/manual_tests.

@Hixie
Copy link
Contributor
Hixie commented May 16, 2017

We shouldn't check in graphics assets into this repo. Can you use the flutter_gallery_assets package instead? See dev/benchmarks/complex_layout for an example.

@mattsarett
Copy link
Contributor Author

Thanks for the example. Looks like I'll want to land a change to the flutter_gallery_assets repo first?

@mattsarett
Copy link
Contributor Author

@Hixie Is it ok to push directly to that repo or is there a review system?

@Hixie
Copy link
Contributor
Hixie commented May 16, 2017

I'm afraid you have entered a dark place. :-)

You want to submit a review on https://flutter-review.googlesource.com/ (the repo itself is https://flutter.googlesource.com/gallery-assets/). You'll want to make sure you describe the license for each file in the README.

To actually submit the code review you'll want to follow the esoteric steps described here:
https://gerrit-review.googlesource.com/Documentation/user-upload.html

I am really sorry about the complexity here. If this all seems like far too much red tape to contribute to a project then please don't hesitate to just leave this PR open and eventually we'll deal with the images ourselves. (In that case, please do leave a comment here describing the license situation for each image and also maybe the technical details of each image file, for example what is important about each image such as what color spaces each image must use and what colors it must include and so forth, so that if we "optimize" them by converting to JPEG or using optipng or something we don't break everything.)

@mattsarett
Copy link
Contributor Author

No problem, thanks for the detail. I'll follow up if I have questions.

Hixie added a commit to Hixie/assets-for-api-docs that referenced this pull request May 17, 2017
This is for <flutter/flutter#10000>.

I considered using the Gallery assets repo, but it seems wrong to
include these assets in the gallery app, so I decided to use this repo
instead.
@Hixie
Copy link
Contributor
Hixie commented May 17, 2017

Ok the images are now available at:

https://flutter.github.io/assets-for-api-docs/tests/colors/gbr.png
https://flutter.github.io/assets-for-api-docs/tests/colors/tf.png
https://flutter.github.io/assets-for-api-docs/tests/colors/wide-gamut.png

I recommend changing the app to use [Image.network] and just fetch them by URL, rather than trying to put them into a package.

@mattsarett
Copy link
Contributor Author

Thanks very much Ian! I think the latest version follows your suggestion. I'll need to verify the behavior when I'm back in the office tomorrow.

@Hixie
Copy link
Contributor
Hixie commented May 17, 2017

This needs a test (next to https://github.com/flutter/flutter/blob/master/dev/manual_tests/test/card_collection_test.dart), but other than that LGTM.

@Hixie Hixie dismissed HansMuller’s stale review May 17, 2017 20:25

comments are addressed

@mattsarett
Copy link
Contributor Author

Got it. I've added a very basic test.

@Hixie
Copy link
Contributor
Hixie commented May 18, 2017

LGTM. Will land when build is green.

@Hixie Hixie merged commit 5b5aa25 into flutter:master May 18, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 13, 2021
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.

8 participants
0