-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Bitmap rendering Context for OffscreenCanvas #4455
Conversation
Addressed fserb comments; pull request ready to be reviewed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this! We'll also need:
- Implementer support.
- Tests.
Anne, we are working on the tests. For support, can you help me get some Firefox folks on the thread? |
It's fine here; @whatwg/canvas please indicate whether or not you support bitmap rendering context support for |
The tests are done! |
ping @whatwg/canvas ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a couple minor things left still here.
Hey @annevk, I've addressed the comments, and I've found out that I was missing one place to correctly add the bitmaprenderer option, so I've added those changes also. Thanks againg for taking the time to review this changes! |
Hey @annevk, thanks again for all the reviews. This is my first time editing the specs and I have lots to learn. You're reviews are being very helpful for that. I've reverted the explanation of the canvas getter, after what you commented and reading carefully the document, I think the original definition of the getter is correct both for "normal" canvas and an offscreen canvas. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, hopefully final nits.
@Juanmihd I'm not sure where the correct place is to give feedback on tests, given the automatically exported PR, so I'll do it here. It would be really good to have some test coverage for the origin-clean flag. In particular, put bitmaps on the context that are not origin-clean and then see that |
heads-up @whatwg/documentation |
Recorded potential documentation need ar https://trello.com/c/N0hJJV95/129-2d-canvas-api |
@annevk I've added a new test to validate the origin-clean flag functionality with convertToBlob. Do you have any other comments regarding the specs? |
Do you have a link to the test? |
Are there any other comments to address before finalizing the review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I think we're still lacking these things
- Implementer interest
- Implementation bugs
right? Otherwise this looks good to me.
(@musgravejw you want to keep this in mind as this might end up clashing with your refactoring effort in #4565 or the other way around.)
Test changed to use promise_rejects. https://github.com/web-platform-tests/wpt/pull/16032/files#diff-49891c9a9321f46e9402869e95b45261 Thanks @annevk. I'll create now the Implementation Bugs. |
Firefox bug. |
WebKit bug. |
ping @whatwg/canvas? any comment to get the Implementer Interest? |
@annevk Can you help me pinging @whatwg/canvas? I think I'm doing it wrong. |
Btw, this will soon be used by |
@Juanmihd they are already copied so should be getting emails either way. Might help to reach out to folks directly. For Mozilla you can also use https://github.com/mozilla/standards-positions. I'll add you to the WHATWG organization so you can ping teams in future issues. Do you also want to join the canvas team? |
WebKit would like to implement this. |
@annevk Thanks for adding me to the whatwg organization! Yes, I'd like to join the canvas team, as it is my primary work here at Google. And given that the implementers have shown interest, is there anything else to do prior to merging this change? |
No, all good (and you're part of the team). Thanks all! |
This change adds
bitmaprenderingcontext
to OffscreenCanvas.The behaviour of the context is the same, just extending it to Offscreen.
@whatwg/canvas @Juanmihd
💥 Error: HTTP Error: 404 Not Found 💥
PR Preview failed to build. (Last tried on Apr 5, 2019, 3:08 PM UTC).
More
🔗 Related URL
If the error is not surfaced properly, please file an issue.