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 upDummy sCache texture input #913
Conversation
|
Looks good apart from those minor nits. r=me when those are fixed. |
| @@ -1,6 +1,6 @@ | |||
| [package] | |||
| name = "webrender" | |||
| version = "0.17.0" | |||
This comment has been minimized.
This comment has been minimized.
glennw
Feb 22, 2017
Member
There's a few other PRs in the queue that also update the version, so we can probably leave the version number change out of this (this drops the version number below what the queued PRs do).
| @@ -715,6 +720,15 @@ impl Renderer { | |||
| TextureFilter::Linear, | |||
| ImageData::Raw(Arc::new(mask_pixels))); | |||
|
|
|||
| let dummy_cache_texture_id = device.create_texture_ids(1, TextureTarget::Array)[0]; | |||
| device.init_texture(dummy_cache_texture_id, | |||
| 1, | |||
This comment has been minimized.
This comment has been minimized.
|
|
|
Thanks! |
|
|
Dummy sCache texture input Fixes #907 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/913) <!-- Reviewable:end -->
| @@ -715,6 +720,15 @@ impl Renderer { | |||
| TextureFilter::Linear, | |||
| ImageData::Raw(Arc::new(mask_pixels))); | |||
|
|
|||
| let dummy_cache_texture_id = device.create_texture_ids(1, TextureTarget::Array)[0]; | |||
| device.init_texture(dummy_cache_texture_id, | |||
This comment has been minimized.
This comment has been minimized.
emilio
Feb 22, 2017
Member
This is minor, but am I right assuming we're leaking this texture, or is there something preventing that? If not, would it make sense to destroy it on drop?
|
@emilio good point! |
|
r? @emilio |
|
@bors-servo r=glennw,emilio |
|
|
Dummy sCache texture input Fixes #907 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/913) <!-- Reviewable:end -->
|
|
kvark commentedFeb 21, 2017
•
edited by larsbergstrom
Fixes #907
r? @glennw
This change is