diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2012-10-25 16:33:28 -0700 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2012-10-25 16:33:28 -0700 |
commit | 38fb01b43f379f075d158eb00d4a7c75de60a9bb (patch) | |
tree | 85c4398f30423e9c5349863dd57bb6c2cfbe78fc /src/servo/gfx/compositor.rs | |
parent | 5c373c21d83cfb537c79e854d72544c0835cec2e (diff) | |
download | servo-38fb01b43f379f075d158eb00d4a7c75de60a9bb.tar.gz servo-38fb01b43f379f075d158eb00d4a7c75de60a9bb.zip |
gfx: Place rects in the layer buffers, not just sizes
Diffstat (limited to 'src/servo/gfx/compositor.rs')
-rw-r--r-- | src/servo/gfx/compositor.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/servo/gfx/compositor.rs b/src/servo/gfx/compositor.rs index f704132dddf..8e6e3af3513 100644 --- a/src/servo/gfx/compositor.rs +++ b/src/servo/gfx/compositor.rs @@ -1,7 +1,7 @@ use azure::azure_hl::{DrawTarget}; use cairo::cairo_hl::ImageSurface; use dom::event::Event; -use geom::size::Size2D; +use geom::rect::Rect; struct LayerBuffer { // TODO: We should not be coupled to Cairo this tightly. Instead we should pull the buffer out @@ -10,7 +10,8 @@ struct LayerBuffer { draw_target: DrawTarget, - size: Size2D<uint>, + // The rect in the containing RenderLayer that this represents. + rect: Rect<uint>, // NB: stride is in pixels, like OpenGL GL_UNPACK_ROW_LENGTH. stride: uint |