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 upRemove pipeline_size_changed from RenderNotifier and update toml #772
Conversation
|
Did you build after making this change? There are places in the code that call the method that was removed. |
|
I actually forgot to build it |
|
Ya after just removing those 3 calls to
is still in the |
|
Yep. |
|
If this is ok do you want me to squash the commit? |
| @@ -401,8 +401,7 @@ impl RenderBackend { | |||
| notifier.as_mut() | |||
| .unwrap() | |||
| .as_mut() | |||
| .unwrap() | |||
| .pipeline_size_changed(pipeline_id, Some(new_size)); | |||
| .unwrap(); | |||
This comment has been minimized.
This comment has been minimized.
jdm
Jan 24, 2017
Member
This code doesn't do anything now, since it isn't used to notify anything. We can remove all of the code that compares the sizes of pipelines and stores them for later.
This comment has been minimized.
This comment has been minimized.
hgallagher1993
Jan 24, 2017
Author
Contributor
Sorry I'm just struggling to get this, it's the first time I've ever seen this code :-/, Is it basically everything to do with updated_pipeline_sizes that can be removed? So pretty much everything bellow self.frame.create(&self.scene, &mut new_pipeline_sizes);
This comment has been minimized.
This comment has been minimized.
jdm
Jan 24, 2017
Member
As far as I know, the only use of storing the known pipeline sizes is to compare them in this code. Since we don't need to notify any other code about changes to pipeline sizes, that means we can get rid of all of the code that compares them, as well as any code that stores them for later use. Basically, any code that now does not do anything with the result of comparisons can be removed.
|
Squashing commits is fine. |
|
I can make the change to Servo as well if you want |
|
@jdm The Servo code that uses this feature is being reverted due to causing test failures, I believe (see servo/servo#15164). If that's right, we should hold off on this until the Servo code changes land without causing regressions? |
|
I'm inclined to hold off on merging it, yes. But I think working on it before then is fine. |
|
Yes, that's fine - it may just involve a lot of rebasing the patch, depending on how long it takes to get the Servo changes to land. |
|
I think the servo changes were legitimately green on try, so should be
easy to reland them I hope.
…On Tue, Jan 24, 2017 at 11:25:31AM -0800, Glenn Watson wrote:
Yes, that's fine - it may just involve a lot of rebasing the patch, depending on how long it takes to get the Servo changes to land.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#772 (comment)
|
|
I think the Servo changes have landed now? However, there are CI compile failures for this PR that need to be resolved first. |
|
I think it's just the Cargo.lock I have to commit to get it compiling, it's compiling for me locally now like, just have to makes the changes jdm requested first |
|
I will defer to the proper reviewers for this code, but that looks more like what I expected to see :) |
|
This looks good - there's a couple CI errors to fix though. If you |
|
Wrench and the sample are building now |
|
This looks good, but could you remove the merge commits, please? |
|
To remove the 2 commits is it just |
|
You can do |
|
|
|
Waiting on squash and rebase, then this should be good to go. |
|
Just on the merges I've to remove, I ran |
|
If you check the "Allow edits from collaborators" checkbox I can do it for you, exporting the patches with |
|
That's checked now |
|
The Allow edits from maintainers |
|
Just |
…ode.
|
Is there any chance you could just push it? because I'm actually just about to go back to a class in college that I'll be in for a few hours, I was only on a break just now |
|
Sure :) |
|
@bors-servo r=glennw |
|
|
|
Thanks for working on this @hgallagher1993! |
Remove pipeline_size_changed from RenderNotifier and update toml r? @jdm <!-- 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/772) <!-- Reviewable:end -->
|
|
hgallagher1993 commentedJan 24, 2017
•
edited by larsbergstrom
r? @jdm
This change is