diff options
Diffstat (limited to 'components/gfx/paint_task.rs')
-rw-r--r-- | components/gfx/paint_task.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/components/gfx/paint_task.rs b/components/gfx/paint_task.rs index a97487db92d..1ad7bf54006 100644 --- a/components/gfx/paint_task.rs +++ b/components/gfx/paint_task.rs @@ -25,7 +25,7 @@ use msg::compositor_msg::{LayerMetadata, PaintListener, ScrollPolicy}; use msg::constellation_msg::Msg as ConstellationMsg; use msg::constellation_msg::{ConstellationChan, Failure, PipelineId}; use msg::constellation_msg::PipelineExitType; -use profile::time::{self, profile}; +use profile_traits::time::{self, profile}; use skia::SkiaGrGLNativeContextRef; use std::borrow::ToOwned; use std::mem; @@ -33,7 +33,6 @@ use std::sync::Arc; use std::sync::mpsc::{Receiver, Sender, channel}; use util::geometry::{Au, ZERO_POINT}; use util::opts; -use util::smallvec::SmallVec; use util::task::spawn_named_with_send_on_failure; use util::task_state; use util::task::spawn_named; @@ -547,8 +546,8 @@ impl WorkerThread { // Apply a translation to start at the boundaries of the stacking context, since the // layer's origin starts at its overflow rect's origin. let tile_bounds = tile.page_rect.translate( - &Point2D(stacking_context.overflow.origin.x.to_subpx() as AzFloat, - stacking_context.overflow.origin.y.to_subpx() as AzFloat)); + &Point2D(stacking_context.overflow.origin.x.to_f32_px(), + stacking_context.overflow.origin.y.to_f32_px())); // Apply the translation to paint the tile we want. let matrix: Matrix2D<AzFloat> = Matrix2D::identity(); @@ -576,8 +575,8 @@ impl WorkerThread { // painted this tile. let color = THREAD_TINT_COLORS[thread_id % THREAD_TINT_COLORS.len()]; paint_context.draw_solid_color(&Rect(Point2D(Au(0), Au(0)), - Size2D(Au::from_px(size.width as isize), - Au::from_px(size.height as isize))), + Size2D(Au::from_px(size.width), + Au::from_px(size.height))), color); } } |