Skip to content

Remove old rendering backend.#13711

Merged
bors-servo merged 1 commit intoservo:masterfrom
glennw:remove-old-renderer
Oct 18, 2016
Merged

Remove old rendering backend.#13711
bors-servo merged 1 commit intoservo:masterfrom
glennw:remove-old-renderer

Conversation

@glennw
Copy link
Copy Markdown
Member

@glennw glennw commented Oct 12, 2016

This removes paint threads, rust-layers dependency, and changes
optional webrender types to be required.

The use_webrender option has been removed, however I've left
the "-w" command line option in place for now so that wpt
runner can continue to pass that. Once it's removed from there
we can also remove the -w option.

Once this stage is complete, it should be fine to change the
display list building code to generate webrender display
lists directly and avoid the conversion step.


This change is Reviewable

@highfive
Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @asajeffrey: components/constellation/lib.rs, components/constellation/pipeline.rs, components/constellation/Cargo.toml, components/constellation/constellation.rs
  • @KiChjang: components/script/dom/canvasrenderingcontext2d.rs, components/script/dom/window.rs, components/script_traits/lib.rs, components/script_traits/lib.rs, components/script_layout_interface/Cargo.toml, components/script_traits/script_msg.rs, components/script_traits/script_msg.rs, components/net/image_cache_thread.rs, components/script_layout_interface/lib.rs, components/script/script_thread.rs, components/script_layout_interface/message.rs, components/net_traits/image/base.rs, components/net_traits/image/base.rs, components/script_traits/Cargo.toml, components/script_traits/Cargo.toml

@highfive
Copy link
Copy Markdown

warning Warning warning

  • These commits modify gfx, layout, net, and script code, but no tests are modified. Please consider adding a test!

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Oct 12, 2016
@glennw
Copy link
Copy Markdown
Member Author

glennw commented Oct 12, 2016

@bors-servo try

@bors-servo
Copy link
Copy Markdown
Contributor

⌛ Trying commit ba9d0bb with merge e429ebd...

bors-servo pushed a commit that referenced this pull request Oct 12, 2016
Remove old rendering backend.

This removes paint threads, rust-layers dependency, and changes
optional webrender types to be required.

The use_webrender option has been removed, however I've left
the "-w" command line option in place for now so that wpt
runner can continue to pass that. Once it's removed from there
we can also remove the -w option.

Once this stage is complete, it should be fine to change the
display list building code to generate webrender display
lists directly and avoid the conversion step.
@bors-servo
Copy link
Copy Markdown
Contributor

💔 Test failed - mac-rel-wpt1

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label Oct 12, 2016
@glennw glennw force-pushed the remove-old-renderer branch from ba9d0bb to c241737 Compare October 12, 2016 06:02
@highfive highfive removed the S-tests-failed The changes caused existing tests to fail. label Oct 12, 2016
@glennw
Copy link
Copy Markdown
Member Author

glennw commented Oct 12, 2016

@bors-servo retry

@glennw
Copy link
Copy Markdown
Member Author

glennw commented Oct 12, 2016

@bors-servo try

bors-servo pushed a commit that referenced this pull request Oct 12, 2016
Remove old rendering backend.

This removes paint threads, rust-layers dependency, and changes
optional webrender types to be required.

The use_webrender option has been removed, however I've left
the "-w" command line option in place for now so that wpt
runner can continue to pass that. Once it's removed from there
we can also remove the -w option.

Once this stage is complete, it should be fine to change the
display list building code to generate webrender display
lists directly and avoid the conversion step.

<!-- 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/13711)
<!-- Reviewable:end -->
@bors-servo
Copy link
Copy Markdown
Contributor

⌛ Trying commit c241737 with merge 409399e...

@bors-servo
Copy link
Copy Markdown
Contributor

💔 Test failed - windows-dev

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label Oct 12, 2016
@glennw glennw force-pushed the remove-old-renderer branch from c241737 to 90c3764 Compare October 12, 2016 07:19
@highfive highfive removed the S-tests-failed The changes caused existing tests to fail. label Oct 12, 2016
@glennw
Copy link
Copy Markdown
Member Author

glennw commented Oct 12, 2016

@bors-servo try

@bors-servo
Copy link
Copy Markdown
Contributor

⌛ Trying commit 90c3764 with merge e43bd42...

bors-servo pushed a commit that referenced this pull request Oct 12, 2016
Remove old rendering backend.

This removes paint threads, rust-layers dependency, and changes
optional webrender types to be required.

The use_webrender option has been removed, however I've left
the "-w" command line option in place for now so that wpt
runner can continue to pass that. Once it's removed from there
we can also remove the -w option.

Once this stage is complete, it should be fine to change the
display list building code to generate webrender display
lists directly and avoid the conversion step.

<!-- 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/13711)
<!-- Reviewable:end -->
@glennw glennw force-pushed the remove-old-renderer branch from 90c3764 to c233541 Compare October 12, 2016 07:23
@glennw
Copy link
Copy Markdown
Member Author

glennw commented Oct 12, 2016

We should get the stacking context patch from @mrobinson reviewed and merged before this. This can still be reviewed, and I'll rebase on top of that when it lands.

webrender: Option<webrender::Renderer>,
webrender: webrender::Renderer,

/// The webrender interface, if enabled.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix the comment, please

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed


gl::bind_texture(gl::TEXTURE_2D, 0);

let renderbuffer_ids = if opts::get().use_webrender {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears to be backwards

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That piece of code was WR-only, but it's now not required by WR at all - so I've removed it completely.

use euclid::point::Point2D;
use euclid::size::Size2D;
use gfx_traits::{Epoch, FrameTreeId, LayerId, LayerProperties, PaintListener};
use gfx_traits::{LayerId};
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: no braces

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

name = "webrender"
version = "0.6.0"
source = "git+https://github.com/servo/webrender#b31b4cf76324bfbe82d27a059e1330ef5ae34c35"
replace = "webrender 0.6.0"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops pushed a [replace] section override accidentally - fixed.

Copy link
Copy Markdown
Member

@emilio emilio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only a few comments, not an in-depth review.

webrender_traits::ImageFormat::RGBA8,
element.into());

let pixel_data = CanvasPixelData {
Copy link
Copy Markdown
Member

@emilio emilio Oct 12, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fill a follow-up to remove the image_data field from CanvasPixelData.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -756,18 +614,7 @@ impl<Window: WindowMethods> IOCompositor<Window> {
}

(Msg::CollectMemoryReports(reports_chan), ShutdownState::NotShuttingDown) => {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At this point we could also remove this message entirely. Please do it or file a followup for it.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}
_pipeline_id: PipelineId,
_layer_id: LayerId,
_point: Point2D<f32>) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So if I understand this code correctly, this is only called on resize to keep the scroll where the fragment of the URL points to. The code in script_thread.rs has a FIXME(pcwalton) saying it's very bogus. I think it's a regression we could take, what do you think?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's also used for scrolling to a # anchor in a page. However, it doesn't work with webrender right now anyway, so it's not technically a regression. #13736

@glennw glennw force-pushed the remove-old-renderer branch from c233541 to 29567a8 Compare October 12, 2016 21:54
@glennw
Copy link
Copy Markdown
Member Author

glennw commented Oct 12, 2016

@bors-servo try

@bors-servo
Copy link
Copy Markdown
Contributor

⌛ Trying commit 29567a8 with merge 1102593...

@bors-servo
Copy link
Copy Markdown
Contributor

📌 Commit 324914d has been approved by larsbergstrom

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. S-needs-rebase There are merge conflict errors. S-tests-failed The changes caused existing tests to fail. labels Oct 17, 2016
@larsbergstrom
Copy link
Copy Markdown
Contributor

@bors-servo clean try- r+

@bors-servo
Copy link
Copy Markdown
Contributor

💡 This pull request was already approved, no need to approve it again.

@bors-servo
Copy link
Copy Markdown
Contributor

📌 Commit 324914d has been approved by larsbergstrom

@emilio
Copy link
Copy Markdown
Member

emilio commented Oct 18, 2016

@bors-servo: p=1000

  • Prone to bitrot

@emilio
Copy link
Copy Markdown
Member

emilio commented Oct 18, 2016

@bors-servo: clean r- try-

@emilio
Copy link
Copy Markdown
Member

emilio commented Oct 18, 2016

@bors-servo: r=larsbergstrom,pcwalton,Ms2ger,emilio

@bors-servo
Copy link
Copy Markdown
Contributor

📌 Commit 324914d has been approved by larsbergstrom,pcwalton,Ms2ger,emilio

This removes paint threads, rust-layers dependency, and changes
optional webrender types to be required.

The use_webrender option has been removed, however I've left
the "-w" command line option in place so that wpt
runner can continue to pass that. Once it's removed from there
we can also remove the -w option.

Once this stage is complete, it should be fine to change the
display list building code to generate webrender display
lists directly and avoid the conversion step.
@glennw glennw force-pushed the remove-old-renderer branch from 324914d to acfdfd2 Compare October 18, 2016 00:22
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Oct 18, 2016
@glennw
Copy link
Copy Markdown
Member Author

glennw commented Oct 18, 2016

@bors-servo r=larsbergstrom

@bors-servo
Copy link
Copy Markdown
Contributor

📌 Commit acfdfd2 has been approved by larsbergstrom

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Oct 18, 2016
@bors-servo
Copy link
Copy Markdown
Contributor

⌛ Testing commit acfdfd2 with merge f96718d...

bors-servo pushed a commit that referenced this pull request Oct 18, 2016
Remove old rendering backend.

This removes paint threads, rust-layers dependency, and changes
optional webrender types to be required.

The use_webrender option has been removed, however I've left
the "-w" command line option in place for now so that wpt
runner can continue to pass that. Once it's removed from there
we can also remove the -w option.

Once this stage is complete, it should be fine to change the
display list building code to generate webrender display
lists directly and avoid the conversion step.

<!-- 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/13711)
<!-- Reviewable:end -->
@bors-servo
Copy link
Copy Markdown
Contributor

@bors-servo bors-servo merged commit acfdfd2 into servo:master Oct 18, 2016
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 18, 2016
@glennw glennw deleted the remove-old-renderer branch October 18, 2016 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants