Skip to content

Replace libpng and stb_image with PistonDevelopers/image - #7933

Merged
bors-servo merged 3 commits into
servo:masterfrom
mbrubeck:piston-image
Oct 12, 2015
Merged

bors-servo merged 3 commits into
servo:masterfrom
mbrubeck:piston-image

Conversation

@mbrubeck

@mbrubeck mbrubeck commented Oct 8, 2015

Copy link
Copy Markdown
Contributor

Fixes #3368. r? @glennw

Review on Reviewable

@mbrubeck mbrubeck added the A-content/images Interacting with images from web content label Oct 8, 2015
@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Oct 8, 2015
@mbrubeck mbrubeck mentioned this pull request Oct 8, 2015
@waddlesplash

Copy link
Copy Markdown

Less unsafe code being used! 👏 👏 👏

@glennw

glennw commented Oct 8, 2015

Copy link
Copy Markdown
Member

One question - the piston docs say only baseline jpeg is supported, but I added a reftest a while ago that checks for progressive jpeg decoding. Do all the reftests pass ok? Perhaps the piston docs are out of date. Apart from that question, r=me.

@mbrubeck

mbrubeck commented Oct 9, 2015

Copy link
Copy Markdown
Contributor Author

Oops, forgot to do a full test run. Indeed, the progressive JPEG test fails. (This is image-rs/image#451.)

Perhaps we should keep stb_image as a fallback for now and use it if image returns an UnsupportedError... Or we can wait to land this until image has more complete format support.

@mbrubeck
mbrubeck force-pushed the piston-image branch 2 times, most recently from 4ce39d9 to 7c735bf Compare October 9, 2015 01:15
@mbrubeck

mbrubeck commented Oct 9, 2015

Copy link
Copy Markdown
Contributor Author

@bors-servo try

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit 7c735bf with merge d4f552b...

bors-servo pushed a commit that referenced this pull request Oct 9, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - gonk

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Oct 9, 2015
@mbrubeck

mbrubeck commented Oct 9, 2015

Copy link
Copy Markdown
Contributor Author

Updated to get rid of libpng, and to use stb_image for jpegs until image supports progressive jpeg. The try run shows a cross-compile failure in the gif crate (image-rs/image-gif#2) and a handful of failures in test-ref and test-css.

@mbrubeck

mbrubeck commented Oct 9, 2015

Copy link
Copy Markdown
Contributor Author

The gif link error on gonk is happening because ports/gonk/fake-ld.sh is passing the -pie option when linking a dylib. (It should be passed only when linking an executable.)

@highfive highfive removed the S-tests-failed The changes caused existing tests to fail. label Oct 9, 2015
bors-servo pushed a commit that referenced this pull request Oct 9, 2015
@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. S-tests-failed The changes caused existing tests to fail. labels Oct 9, 2015
@mbrubeck

mbrubeck commented Oct 9, 2015

Copy link
Copy Markdown
Contributor Author

@bors-servo try

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit 3b12c38 with merge 3405ec1...

bors-servo pushed a commit that referenced this pull request Oct 9, 2015
@waddlesplash

Copy link
Copy Markdown

Note that image-png uses flate2 which is C -- there is an issue open over there to replace it with something pure-Rust, but as of now there is nothing which passes all the tests.

Maybe Servo should have an "audit stuff using C and check for / switch to Rust stuff instead" tracking issue?

@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-dev

@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 9, 2015
@mbrubeck mbrubeck changed the title Replace stb_image with PistonDevelopers/image Replace libpng and stb_image with PistonDevelopers/image Oct 9, 2015
bors-servo pushed a commit that referenced this pull request Oct 9, 2015
@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Oct 10, 2015
@highfive highfive removed the S-tests-failed The changes caused existing tests to fail. label Oct 10, 2015
@mbrubeck

Copy link
Copy Markdown
Contributor Author

@bors-servo try

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit ec2db0c with merge 2db2143...

bors-servo pushed a commit that referenced this pull request Oct 10, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux-dev

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Oct 10, 2015
@highfive highfive removed the S-tests-failed The changes caused existing tests to fail. label Oct 10, 2015
@mbrubeck

Copy link
Copy Markdown
Contributor Author

!= reftests were failing because of a bug in the new PNG writing code in the harness. Fixed now.

@glennw

glennw commented Oct 12, 2015

Copy link
Copy Markdown
Member

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit a15acef has been approved by glennw

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Oct 12, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit a15acef with merge 0f597d3...

bors-servo pushed a commit that referenced this pull request Oct 12, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt

@frewsxcv

Copy link
Copy Markdown
Contributor

For what it's worth, this PR caused a regression and Google News now panics: #8093

@mbrubeck
mbrubeck deleted the piston-image branch May 11, 2016 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-content/images Interacting with images from web content S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants