Use u32 for outstanding_paint_msgs.

This commit is contained in:
Ms2ger 2015-03-27 16:41:32 +01:00
parent 55f9bd5d6f
commit 6f05750956

View file

@ -93,7 +93,7 @@ pub struct IOCompositor<Window: WindowMethods> {
shutdown_state: ShutdownState,
/// Tracks outstanding paint_msg's sent to the paint tasks.
outstanding_paint_msgs: uint,
outstanding_paint_msgs: u32,
/// Tracks the last composite time.
last_composite_time: u64,
@ -463,7 +463,7 @@ impl<Window: WindowMethods> IOCompositor<Window> {
self.has_paint_msg_tracking() && self.outstanding_paint_msgs > 0
}
fn add_outstanding_paint_msg(&mut self, count: uint) {
fn add_outstanding_paint_msg(&mut self, count: u32) {
// return early if not tracking paint_msg's
if !self.has_paint_msg_tracking() {
return;