aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/gfx/render_task.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2014-07-15 14:46:17 -0700
committerMartin Robinson <mrobinson@igalia.com>2014-07-16 15:04:46 -0700
commit4d6613c72e2ce3bafdbc1a249744ced07bd5254d (patch)
treec44660938df1859d353aead72a424e8ae07d9dac /src/components/gfx/render_task.rs
parent718ddde1f893f856d6a16748b0b222109299ec12 (diff)
downloadservo-4d6613c72e2ce3bafdbc1a249744ced07bd5254d.tar.gz
servo-4d6613c72e2ce3bafdbc1a249744ced07bd5254d.zip
Changes reflecting the latest version of rust-layers
The Tile trait has been removed and TileGrid now keeps Tile structs with Textures embedded instead of simply buffers. rust-layers now creates its own textures instead of relying on Servo to do it.
Diffstat (limited to 'src/components/gfx/render_task.rs')
-rw-r--r--src/components/gfx/render_task.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/components/gfx/render_task.rs b/src/components/gfx/render_task.rs
index 5677ecb629e..d80eb050715 100644
--- a/src/components/gfx/render_task.rs
+++ b/src/components/gfx/render_task.rs
@@ -120,7 +120,7 @@ pub struct RenderTask<C> {
epoch: Epoch,
/// A data structure to store unused LayerBuffers
- buffer_map: BufferMap<Box<LayerBuffer>>,
+ buffer_map: BufferMap,
}
// If we implement this as a function, we get borrowck errors from borrowing
@@ -380,6 +380,7 @@ impl<C:RenderListener + Send> RenderTask<C> {
buffer.screen_pos = tile.screen_rect;
buffer.resolution = scale;
buffer.native_surface.mark_wont_leak();
+ buffer.painted_with_cpu = true;
buffer
}
None => {
@@ -397,7 +398,8 @@ impl<C:RenderListener + Send> RenderTask<C> {
rect: tile.page_rect,
screen_pos: tile.screen_rect,
resolution: scale,
- stride: (width * 4) as uint
+ stride: (width * 4) as uint,
+ painted_with_cpu: true,
}
}
};
@@ -427,7 +429,8 @@ impl<C:RenderListener + Send> RenderTask<C> {
rect: tile.page_rect,
screen_pos: tile.screen_rect,
resolution: scale,
- stride: (width * 4) as uint
+ stride: (width * 4) as uint,
+ painted_with_cpu: false,
}
}
};