Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up[WIP] External image handlers #1676
Conversation
|
I think Servo would prefer the API to be more in line with |
|
The general idea here seems fine, and the implementation looks good. I'll take another look after your suggested changes for Servo. |
|
@glennw thanks for taking a look! I figured the simplest way here would be if a handler could be assigned per |
|
Right, that would probably be ideal :) |
1dbf91f
to
66b0400
|
|
|
@glennw AppVeyor failures aside (unrelated), and while Gecko push is pending, please take another look as the approach is changed a bit. |
|
Looks good. If this covers the use case that Gecko needs, then r=me. |
|
@kvark I guess we'll want to remove the handler if the api namespace goes out of scope. Not a big deal though - we can work that out as a follow up. |
Sure, good point. Fixed now :)
It's not covering Gecko needs at this very moment as much as it's needed for smooth WebGPU prototyping (WebGL and WebGPU don't want to share the same handler). |
|
@kvark This looks fine to me. Is it ready to go from your perspective? |
|
@glennw thanks! |
|
|
|
Closing for now - feel free to re-open when you have time to work on this again :) |
kvark commentedSep 7, 2017
•
edited
WebRender does not have a single "client". It can be used by multiple independent actors, which may, for example, manage their respective namespaces, or populate/present different documents. Therefore, WR needs to support multiple external image handlers, where each external image is strongly associated with one.
WIP, because TODO: Gecko patch and try pushEdit: https://treeherder.mozilla.org/#/jobs?repo=try&revision=a1fa7748d33f862bb25dc86fad8e091631328484
@glennw comments and r?
This change is