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 upExpose images to the BlobImageRenderer. #1018
Conversation
|
This seems like a minimal change that doesn't affect other areas anyway. Just need to fix the compile errors on CI, then r=me. |
|
r=me once the CI compile error is fixed. |
|
|
8739743
to
d2afb9b
|
|
|
@nical Needs another rebase. |
|
|
|
Can we land this? I have work in progress that I need to rebase on top of it. |
|
@nical sure thing, but it's not mergable atm. |
|
Woops I missed that. Rebased. |
| @@ -116,6 +116,40 @@ struct ImageResource { | |||
| dirty_rect: Option<DeviceUintRect> | |||
| } | |||
|
|
|||
| struct ImageTemplates { | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
nical
Apr 26, 2017
Author
Collaborator
The reason is the borrow checker. Without the separate struct the resource cache ends up being "entirely" borrowed when passed to the blob renderer which can't happen because we are already borrowing it partially (the blob renderer itself).
This comment has been minimized.
This comment has been minimized.
kvark
Apr 26, 2017
Member
I don't understand. How does this change from the borrowck point of view if you just do type ImageTemplates = HashMap<...>?
This comment has been minimized.
This comment has been minimized.
kvark
Apr 26, 2017
Member
as per IRC discussion, having a separate type allows us to implement ImageStore, which is needed to abstract away from BlobImageRenderer
|
@bors-servo r+ |
|
|
Expose images to the BlobImageRenderer. See issue #1017. The idea would be to do the same for fonts and paths. r? @glennw <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/1018) <!-- Reviewable:end -->
|
|
nical commentedMar 28, 2017
•
edited by larsbergstrom
See issue #1017. The idea would be to do the same for fonts and paths.
r? @glennw
This change is