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 upProgressive Rendering #557
Merged
Conversation
src/components/gfx/render_task.rs
Outdated
| @@ -32,7 +32,7 @@ pub struct RenderLayer { | |||
| pub enum Msg<C> { | |||
| AttachCompositorMsg(C), | |||
| RenderMsg(RenderLayer), | |||
| ReRenderMsg(f32), | |||
| ReRenderMsg(~[(Rect<uint>, Rect<f32>)], f32), | |||
This comment has been minimized.
This comment has been minimized.
src/components/gfx/render_task.rs
Outdated
| @@ -128,82 +128,72 @@ impl<C: RenderListener + Owned> Renderer<C> { | |||
| } | |||
| } | |||
|
|
|||
| fn render(&mut self, scale: f32) { | |||
| fn render(&mut self, tiles: ~[(Rect<uint>, Rect<f32>)], scale: f32) { | |||
This comment has been minimized.
This comment has been minimized.
metajack
Jul 3, 2013
Contributor
I would prefer to use a named structure here instead of the anonymous tuple.
| @@ -368,6 +468,8 @@ impl CompositorTask { | |||
|
|
|||
| root_layer.common.set_transform(scroll_transform); | |||
|
|
|||
| // ask_for_tiles(); | |||
This comment has been minimized.
This comment has been minimized.
|
Current issues with this branch:
|
| @@ -406,7 +508,8 @@ impl CompositorTask { | |||
| window_size.height as f32 / -2f32, | |||
| 0.0); | |||
| root_layer.common.set_transform(zoom_transform); | |||
|
|
|||
|
|
|||
| // ask_for_tiles(); | |||
This comment has been minimized.
This comment has been minimized.
Closed
|
@metajack Here is an example of the output of get_html: |
|
This needs a rebase. |
|
Should be fixed now. r? @metajack |
| struct QuadtreeNode<T> { | ||
| /// The tile belonging to this node. Note that parent nodes can have tiles. | ||
| tile: Option<T>, | ||
| /// The positiong of the node in page coordinates. |
This comment has been minimized.
This comment has been minimized.
| tile: Option<T>, | ||
| /// The positiong of the node in page coordinates. | ||
| origin: Point2D<f32>, | ||
| /// The width and hight of the node in page coordinates. |
This comment has been minimized.
This comment has been minimized.
|
|
||
| /// Generate html to visualize the tree |
This comment has been minimized.
This comment has been minimized.
pcwalton
Jul 10, 2013
Contributor
Maybe mention that this is a debugging function? Eventually we would like to mark this with #[cfg(debug)].
|
|
||
| /// Generate html to visualize the tree | ||
| pub fn get_html(&self) -> ~str { | ||
| let header = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> <html xmlns=\"http://www.w3.org/1999/xhtml\">"; |
This comment has been minimized.
This comment has been minimized.
| let mut ret = ~[]; | ||
|
|
||
| match self.tile { | ||
| Some (ref tile) => ret = ~[tile], |
This comment has been minimized.
This comment has been minimized.
pcwalton
Jul 10, 2013
Contributor
nit: no space after Some (eventually rustfmt should automate this)
This comment has been minimized.
This comment has been minimized.
pcwalton
commented on 8a0878a
Jul 11, 2013
|
r+ |
This comment has been minimized.
This comment has been minimized.
|
saw approval from pcwalton |
This comment has been minimized.
This comment has been minimized.
|
merging eschweic/servo/master = 8a0878a into auto |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
fast-forwarding master to auto = 4cf1ac9 |
bors-servo
pushed a commit
that referenced
this pull request
Jul 11, 2013
The compositor now keeps track of what has been rendered and what needs rendering based on the window rect, and asks the renderer for tiles only when needed.
8a0878a
into
servo:master
1 check passed
1 check passed
default
all tests passed
ChrisParis
pushed a commit
to ChrisParis/servo
that referenced
this pull request
Sep 7, 2014
fixes on MS async tests + rm trailing ws
glennw
pushed a commit
to glennw/servo
that referenced
this pull request
Jan 16, 2017
GPU markers support Fixes servo#557 <!-- 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/604) <!-- Reviewable:end -->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.

eschweic commentedJul 3, 2013
The compositor now keeps track of what has been rendered and what needs rendering based on the window rect, and asks the renderer for tiles only when needed.