Skip to content

add FilterQuality diagram#134

Merged
yjbanov merged 2 commits into
flutter:masterfrom
yjbanov:filter-quality-asset
Feb 24, 2021
Merged

add FilterQuality diagram#134
yjbanov merged 2 commits into
flutter:masterfrom
yjbanov:filter-quality-asset

Conversation

@yjbanov

@yjbanov yjbanov commented Feb 23, 2021

Copy link
Copy Markdown
Contributor

Add a diagram showing the effect of FilterQuality on scaled images.

Bonus: exit with a non-zero code when any of the worker jobs fail.

Comment thread bin/generate.dart Outdated
if (jobs.any(_hasJobFailed)) {
// We're already printing the error message. All that's left is set
// the exit code.
exitCode = 1;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can you return 1 here and have the exitCode be set outside this? In general code is easier to reason about if it does not cause changes outside of its own state.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done. Consolidated error reporting into GeneratorException.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

that works. thanks.

@Hixie Hixie left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM modulo minor comments
LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants