Skip to content
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

Remove pipeline_size_changed from RenderNotifier and update toml #772

Merged
merged 1 commit into from Feb 3, 2017

Conversation

@hgallagher1993
Copy link
Contributor

hgallagher1993 commented Jan 24, 2017

r? @jdm


This change is Reviewable

@jdm
Copy link
Member

jdm commented Jan 24, 2017

Did you build after making this change? There are places in the code that call the method that was removed.

@hgallagher1993
Copy link
Contributor Author

hgallagher1993 commented Jan 24, 2017

I actually forgot to build it 😦 . . .there was 3 calls to it anyway in render_backend.rs, I'm just waiting for a file lock to lift before it'll build

@hgallagher1993
Copy link
Contributor Author

hgallagher1993 commented Jan 24, 2017

Ya after just removing those 3 calls to pipeline_size_changed webrender compiles but not Servo because

fn pipeline_size_changed(&mut self,_: webrender_traits::PipelineId,_: Option<webrender_traits::LayoutSize>) { }

is still in the impl in compositor.rs, everything compiled fine when I removed that. So that should be removed fairly soon after this pull request is finished should it?

@jdm
Copy link
Member

jdm commented Jan 24, 2017

Yep.

@hgallagher1993
Copy link
Contributor Author

hgallagher1993 commented Jan 24, 2017

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.

@jdm

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.

@hgallagher1993

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.

@jdm

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.

@jdm
Copy link
Member

jdm commented Jan 24, 2017

Squashing commits is fine.

@hgallagher1993
Copy link
Contributor Author

hgallagher1993 commented Jan 24, 2017

I can make the change to Servo as well if you want

@glennw
Copy link
Member

glennw commented Jan 24, 2017

@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?

@jdm
Copy link
Member

jdm commented Jan 24, 2017

I'm inclined to hold off on merging it, yes. But I think working on it before then is fine.

@glennw
Copy link
Member

glennw commented Jan 24, 2017

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.

@emilio
Copy link
Member

emilio commented Jan 24, 2017

@glennw
Copy link
Member

glennw commented Jan 25, 2017

I think the Servo changes have landed now? However, there are CI compile failures for this PR that need to be resolved first.

@hgallagher1993
Copy link
Contributor Author

hgallagher1993 commented Jan 25, 2017

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

@jdm
Copy link
Member

jdm commented Jan 31, 2017

I will defer to the proper reviewers for this code, but that looks more like what I expected to see :)

@glennw
Copy link
Member

glennw commented Jan 31, 2017

This looks good - there's a couple CI errors to fix though. If you cd wrench && cargo build and then cd sample && cargo build you should be able to see the errors to fix locally.

@hgallagher1993
Copy link
Contributor Author

hgallagher1993 commented Feb 1, 2017

Wrench and the sample are building now

@emilio
Copy link
Member

emilio commented Feb 1, 2017

This looks good, but could you remove the merge commits, please?

@hgallagher1993
Copy link
Contributor Author

hgallagher1993 commented Feb 1, 2017

To remove the 2 commits is it just git revert -m 1 [sha] then commit and push the reverts? I've been reading up on reverting merges and I've found a few different answers. . . . .This is the answer I'm going off atm

@emilio
Copy link
Member

emilio commented Feb 1, 2017

You can do git rebase -i HEAD~5, then remove the lines corresponding to merge commits.

@bors-servo
Copy link
Contributor

bors-servo commented Feb 2, 2017

The latest upstream changes (presumably #817) made this pull request unmergeable. Please resolve the merge conflicts.

@glennw
Copy link
Member

glennw commented Feb 2, 2017

Waiting on squash and rebase, then this should be good to go.

@hgallagher1993
Copy link
Contributor Author

hgallagher1993 commented Feb 3, 2017

Just on the merges I've to remove, I ran git rebase -i HEAD~5 but the 2 merge commits don't appear anywhere in the list, so is there any other way they could be removed?

@emilio
Copy link
Member

emilio commented Feb 3, 2017

If you check the "Allow edits from collaborators" checkbox I can do it for you, exporting the patches with git format-patch, then resetting to master, then applying them with git am --3way works, though I'm pretty sure there should be an easier way...

@hgallagher1993
Copy link
Contributor Author

hgallagher1993 commented Feb 3, 2017

That's checked now

@hgallagher1993
Copy link
Contributor Author

hgallagher1993 commented Feb 3, 2017

The Allow edits from maintainers

@emilio
Copy link
Member

emilio commented Feb 3, 2017

Just git fetch upstream and git rebase upstream/master works, if you want to give it a try. Otherwise I can just push the squashed version :)

…ode.
@hgallagher1993
Copy link
Contributor Author

hgallagher1993 commented Feb 3, 2017

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 😆

@emilio
Copy link
Member

emilio commented Feb 3, 2017

Sure :)

@emilio emilio force-pushed the hgallagher1993:local_branch branch from a0f833f to f77b5e6 Feb 3, 2017
@emilio
Copy link
Member

emilio commented Feb 3, 2017

@bors-servo r=glennw

@bors-servo
Copy link
Contributor

bors-servo commented Feb 3, 2017

📌 Commit f77b5e6 has been approved by glennw

@emilio
Copy link
Member

emilio commented Feb 3, 2017

Thanks for working on this @hgallagher1993!

@bors-servo
Copy link
Contributor

bors-servo commented Feb 3, 2017

Testing commit f77b5e6 with merge c82191a...

bors-servo added a commit that referenced this pull request Feb 3, 2017
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 -->
@bors-servo
Copy link
Contributor

bors-servo commented Feb 3, 2017

☀️ Test successful - status-travis
Approved by: glennw
Pushing c82191a to master...

@bors-servo bors-servo merged commit f77b5e6 into servo:master Feb 3, 2017
2 checks passed
2 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
homu Test successful
Details
@hgallagher1993 hgallagher1993 deleted the hgallagher1993:local_branch branch Feb 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.