diff options
author | bors-servo <metajack+bors@gmail.com> | 2014-10-21 10:06:37 -0600 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2014-10-21 10:06:37 -0600 |
commit | 156ca98236a57ee52ff5b68741bc7783ba073612 (patch) | |
tree | 7e2ad866ddf39e1af901bef84bdae10f13534da0 /components/gfx/render_task.rs | |
parent | 983d180a43b23fdc125b4417afb215b342967f24 (diff) | |
parent | cd42c28f5b819357d037c67f33e993fbe9bbb75d (diff) | |
download | servo-156ca98236a57ee52ff5b68741bc7783ba073612.tar.gz servo-156ca98236a57ee52ff5b68741bc7783ba073612.zip |
auto merge of #3722 : pcwalton/servo/flow-construction-overhaul, r=glennw
This is a grab bag of performance improvements that significantly improve style recalculation, layout, and painting on a few static pages.
Let me know if you'd like me to split this PR up.
r? @glennw
Diffstat (limited to 'components/gfx/render_task.rs')
-rw-r--r-- | components/gfx/render_task.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/components/gfx/render_task.rs b/components/gfx/render_task.rs index 53f50f95102..32c5d97c2b1 100644 --- a/components/gfx/render_task.rs +++ b/components/gfx/render_task.rs @@ -25,14 +25,13 @@ use servo_msg::compositor_msg::{LayerMetadata, RenderListener, RenderingRenderSt use servo_msg::constellation_msg::{ConstellationChan, Failure, FailureMsg, PipelineId}; use servo_msg::constellation_msg::{RendererReadyMsg}; use servo_msg::platform::surface::NativeSurfaceAzureMethods; -use servo_util::geometry::{Au, mod}; +use servo_util::geometry; use servo_util::opts; use servo_util::smallvec::{SmallVec, SmallVec1}; use servo_util::task::spawn_named_with_send_on_failure; use servo_util::time::{TimeProfilerChan, profile}; use servo_util::time; use std::comm::{Receiver, Sender, channel}; -use std::i32; use sync::Arc; use font_cache_task::FontCacheTask; @@ -359,9 +358,8 @@ impl<C:RenderListener + Send> RenderTask<C> { None, self.time_profiler_chan.clone(), || { - let clip_rect = Rect(Point2D(Au(i32::MIN), Au(i32::MIN)), - Size2D(Au(i32::MAX), Au(i32::MAX))); - display_list.draw_into_context(&mut ctx, &matrix, &clip_rect); + let mut clip_stack = Vec::new(); + display_list.draw_into_context(&mut ctx, &matrix, &mut clip_stack); ctx.draw_target.flush(); }); } |