diff --git a/components/gfx/paint_task.rs b/components/gfx/paint_task.rs index 1d02c153f78..e0e2bc906d8 100644 --- a/components/gfx/paint_task.rs +++ b/components/gfx/paint_task.rs @@ -386,8 +386,7 @@ impl PaintTask where C: PaintListener + Send + 'static { // in case it dies in transit to the compositor task. let mut native_surface: NativeSurface = layers::platform::surface::NativeSurface::new(native_graphics_context!(self), - Size2D::new(width as i32, height as i32), - width as i32 * 4); + Size2D::new(width as i32, height as i32)); native_surface.mark_wont_leak(); Some(box LayerBuffer { @@ -395,7 +394,6 @@ impl PaintTask where C: PaintListener + Send + 'static { rect: tile.page_rect, screen_pos: tile.screen_rect, resolution: scale, - stride: (width * 4) as usize, painted_with_cpu: true, content_age: tile.content_age, }) @@ -754,7 +752,6 @@ impl WorkerThread { rect: tile.page_rect, screen_pos: tile.screen_rect, resolution: scale, - stride: (tile.screen_rect.size.width * 4), painted_with_cpu: false, content_age: tile.content_age, } diff --git a/components/servo/Cargo.lock b/components/servo/Cargo.lock index d346d3724ab..b59d0c95e0a 100644 --- a/components/servo/Cargo.lock +++ b/components/servo/Cargo.lock @@ -92,7 +92,7 @@ dependencies = [ "layers 0.1.0 (git+https://github.com/servo/rust-layers)", "log 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", "num 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", - "offscreen_gl_context 0.0.1 (git+https://github.com/ecoal95/rust-offscreen-rendering-context)", + "offscreen_gl_context 0.1.0 (git+https://github.com/ecoal95/rust-offscreen-rendering-context)", "util 0.0.1", ] @@ -105,7 +105,7 @@ dependencies = [ "euclid 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "gfx_traits 0.0.1", "layers 0.1.0 (git+https://github.com/servo/rust-layers)", - "offscreen_gl_context 0.0.1 (git+https://github.com/ecoal95/rust-offscreen-rendering-context)", + "offscreen_gl_context 0.1.0 (git+https://github.com/ecoal95/rust-offscreen-rendering-context)", ] [[package]] @@ -642,7 +642,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "layers" version = "0.1.0" -source = "git+https://github.com/servo/rust-layers#d7defb1fbc84e90322d7b1c6f3fde6cf9ffb736d" +source = "git+https://github.com/servo/rust-layers#a3f07d9a7e34fe368aa8010a83ce8979491fc057" dependencies = [ "azure 0.1.0 (git+https://github.com/servo/rust-azure)", "cgl 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -876,15 +876,15 @@ dependencies = [ [[package]] name = "offscreen_gl_context" -version = "0.0.1" -source = "git+https://github.com/ecoal95/rust-offscreen-rendering-context#e79da8f61ad468087beb546bca4d7267b77edd9f" +version = "0.1.0" +source = "git+https://github.com/ecoal95/rust-offscreen-rendering-context#9b2a5fc48de8b06d02e0d18329dd6dd797b01d05" dependencies = [ "cgl 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "core-foundation 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "egl 0.1.0 (git+https://github.com/servo/rust-egl)", "euclid 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", + "gl_generator 0.0.26 (registry+https://github.com/rust-lang/crates.io-index)", "gleam 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", - "glx 0.0.1 (git+https://github.com/servo/rust-glx)", + "khronos_api 0.0.5 (registry+https://github.com/rust-lang/crates.io-index)", "layers 0.1.0 (git+https://github.com/servo/rust-layers)", "libc 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1072,7 +1072,7 @@ dependencies = [ "msg 0.0.1", "net_traits 0.0.1", "num 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", - "offscreen_gl_context 0.0.1 (git+https://github.com/ecoal95/rust-offscreen-rendering-context)", + "offscreen_gl_context 0.1.0 (git+https://github.com/ecoal95/rust-offscreen-rendering-context)", "plugins 0.0.1", "png 0.1.0 (git+https://github.com/servo/rust-png)", "profile_traits 0.0.1", diff --git a/ports/cef/Cargo.lock b/ports/cef/Cargo.lock index 74af6723ee6..eb71091a168 100644 --- a/ports/cef/Cargo.lock +++ b/ports/cef/Cargo.lock @@ -91,7 +91,7 @@ dependencies = [ "layers 0.1.0 (git+https://github.com/servo/rust-layers)", "log 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", "num 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", - "offscreen_gl_context 0.0.1 (git+https://github.com/ecoal95/rust-offscreen-rendering-context)", + "offscreen_gl_context 0.1.0 (git+https://github.com/ecoal95/rust-offscreen-rendering-context)", "util 0.0.1", ] @@ -104,7 +104,7 @@ dependencies = [ "euclid 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "gfx_traits 0.0.1", "layers 0.1.0 (git+https://github.com/servo/rust-layers)", - "offscreen_gl_context 0.0.1 (git+https://github.com/ecoal95/rust-offscreen-rendering-context)", + "offscreen_gl_context 0.1.0 (git+https://github.com/ecoal95/rust-offscreen-rendering-context)", ] [[package]] @@ -634,7 +634,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "layers" version = "0.1.0" -source = "git+https://github.com/servo/rust-layers#d7defb1fbc84e90322d7b1c6f3fde6cf9ffb736d" +source = "git+https://github.com/servo/rust-layers#a3f07d9a7e34fe368aa8010a83ce8979491fc057" dependencies = [ "azure 0.1.0 (git+https://github.com/servo/rust-azure)", "cgl 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -856,15 +856,15 @@ dependencies = [ [[package]] name = "offscreen_gl_context" -version = "0.0.1" -source = "git+https://github.com/ecoal95/rust-offscreen-rendering-context#e79da8f61ad468087beb546bca4d7267b77edd9f" +version = "0.1.0" +source = "git+https://github.com/ecoal95/rust-offscreen-rendering-context#9b2a5fc48de8b06d02e0d18329dd6dd797b01d05" dependencies = [ "cgl 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "core-foundation 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "egl 0.1.0 (git+https://github.com/servo/rust-egl)", "euclid 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", + "gl_generator 0.0.26 (registry+https://github.com/rust-lang/crates.io-index)", "gleam 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", - "glx 0.0.1 (git+https://github.com/servo/rust-glx)", + "khronos_api 0.0.5 (registry+https://github.com/rust-lang/crates.io-index)", "layers 0.1.0 (git+https://github.com/servo/rust-layers)", "libc 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1052,7 +1052,7 @@ dependencies = [ "msg 0.0.1", "net_traits 0.0.1", "num 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", - "offscreen_gl_context 0.0.1 (git+https://github.com/ecoal95/rust-offscreen-rendering-context)", + "offscreen_gl_context 0.1.0 (git+https://github.com/ecoal95/rust-offscreen-rendering-context)", "plugins 0.0.1", "png 0.1.0 (git+https://github.com/servo/rust-png)", "profile_traits 0.0.1", diff --git a/ports/gonk/Cargo.lock b/ports/gonk/Cargo.lock index 2701758c5d3..a0e02714a0a 100644 --- a/ports/gonk/Cargo.lock +++ b/ports/gonk/Cargo.lock @@ -78,7 +78,7 @@ dependencies = [ "layers 0.1.0 (git+https://github.com/servo/rust-layers)", "log 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", "num 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", - "offscreen_gl_context 0.0.1 (git+https://github.com/ecoal95/rust-offscreen-rendering-context)", + "offscreen_gl_context 0.1.0 (git+https://github.com/ecoal95/rust-offscreen-rendering-context)", "util 0.0.1", ] @@ -91,7 +91,7 @@ dependencies = [ "euclid 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "gfx_traits 0.0.1", "layers 0.1.0 (git+https://github.com/servo/rust-layers)", - "offscreen_gl_context 0.0.1 (git+https://github.com/ecoal95/rust-offscreen-rendering-context)", + "offscreen_gl_context 0.1.0 (git+https://github.com/ecoal95/rust-offscreen-rendering-context)", ] [[package]] @@ -568,7 +568,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "layers" version = "0.1.0" -source = "git+https://github.com/servo/rust-layers#d7defb1fbc84e90322d7b1c6f3fde6cf9ffb736d" +source = "git+https://github.com/servo/rust-layers#a3f07d9a7e34fe368aa8010a83ce8979491fc057" dependencies = [ "azure 0.1.0 (git+https://github.com/servo/rust-azure)", "cgl 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -773,15 +773,15 @@ dependencies = [ [[package]] name = "offscreen_gl_context" -version = "0.0.1" -source = "git+https://github.com/ecoal95/rust-offscreen-rendering-context#e79da8f61ad468087beb546bca4d7267b77edd9f" +version = "0.1.0" +source = "git+https://github.com/ecoal95/rust-offscreen-rendering-context#9b2a5fc48de8b06d02e0d18329dd6dd797b01d05" dependencies = [ "cgl 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "core-foundation 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "egl 0.1.0 (git+https://github.com/servo/rust-egl)", "euclid 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", + "gl_generator 0.0.26 (registry+https://github.com/rust-lang/crates.io-index)", "gleam 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", - "glx 0.0.1 (git+https://github.com/servo/rust-glx)", + "khronos_api 0.0.5 (registry+https://github.com/rust-lang/crates.io-index)", "layers 0.1.0 (git+https://github.com/servo/rust-layers)", "libc 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -960,7 +960,7 @@ dependencies = [ "msg 0.0.1", "net_traits 0.0.1", "num 0.1.25 (registry+https://github.com/rust-lang/crates.io-index)", - "offscreen_gl_context 0.0.1 (git+https://github.com/ecoal95/rust-offscreen-rendering-context)", + "offscreen_gl_context 0.1.0 (git+https://github.com/ecoal95/rust-offscreen-rendering-context)", "plugins 0.0.1", "png 0.1.0 (git+https://github.com/servo/rust-png)", "profile_traits 0.0.1",