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 upMake webgl behave better with session history #23000
Conversation
…owsing context.
highfive
commented
Mar 8, 2019
|
Heads up! This PR modifies the following files:
|
|
r? @nox |
|
OMG please yes can we have this yesterday? |
| if let Some(new_pipeline) = self.pipelines.get(&new_pipeline_id) { | ||
| new_pipeline.notify_visibility(true); | ||
| } | ||
|
|
This comment has been minimized.
This comment has been minimized.
asajeffrey
Mar 8, 2019
Member
I could have sworn we were already doing this. Am I going mad, and just dreaming up code? @cbrewster, can you remember?
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
cbrewster
Mar 8, 2019
Member
It's been a while. I think we only updated activity, but not visibility.
|
The automated test relies on the behaviour changes from #22999, so this PR will need to wait until that one is merged. |
|
@bors-servo r+ Nice. |
|
|
Make webgl behave better with session history This prevents the compositor from animating pages that are not actually visible, so pages using webgl do not needlessly impact the performance of the rest of the browser. Additionally, this fixes a problem that was alluded to in [this code](https://github.com/servo/rust-offscreen-rendering-context/blob/b5228c098b889a9806a5f93582903e192b3939ef/src/draw_buffer.rs#L282-L285), causing Servo to delete arbitrary resources when a GC occurred in content that used three.js. - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22987 and fix #22977 and fix #20934 and fix #20953 and fix #20930 and fix #20950 and fix #20924 - [x] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23000) <!-- Reviewable:end -->
|
|
|
|
@bors-servo r=nox |
|
|
Make webgl behave better with session history This prevents the compositor from animating pages that are not actually visible, so pages using webgl do not needlessly impact the performance of the rest of the browser. Additionally, this fixes a problem that was alluded to in [this code](https://github.com/servo/rust-offscreen-rendering-context/blob/b5228c098b889a9806a5f93582903e192b3939ef/src/draw_buffer.rs#L282-L285), causing Servo to delete arbitrary resources when a GC occurred in content that used three.js. - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22987 and fix #22977 and fix #20934 and fix #20953 and fix #20930 and fix #20950 and fix #20924 - [x] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23000) <!-- Reviewable:end -->
|
|
jdm commentedMar 8, 2019
•
edited by SimonSapin
This prevents the compositor from animating pages that are not actually visible, so pages using webgl do not needlessly impact the performance of the rest of the browser. Additionally, this fixes a problem that was alluded to in this code, causing Servo to delete arbitrary resources when a GC occurred in content that used three.js.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is