mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update to latest rust-layers
This commit is contained in:
parent
68ceb63231
commit
77e11909b4
6 changed files with 33 additions and 23 deletions
|
@ -56,9 +56,13 @@ git = "https://github.com/servo/rust-core-graphics"
|
||||||
[dependencies.core_text]
|
[dependencies.core_text]
|
||||||
git = "https://github.com/servo/rust-core-text"
|
git = "https://github.com/servo/rust-core-text"
|
||||||
|
|
||||||
|
[dependencies.skia]
|
||||||
|
git = "https://github.com/servo/skia"
|
||||||
|
branch = "upstream-2014-06-16"
|
||||||
|
|
||||||
[dependencies.script_traits]
|
[dependencies.script_traits]
|
||||||
path = "../script_traits"
|
path = "../script_traits"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
url = "0.2.16"
|
url = "0.2.16"
|
||||||
time = "0.1.12"
|
time = "0.1.12"
|
||||||
|
|
|
@ -29,6 +29,7 @@ extern crate "net" as servo_net;
|
||||||
extern crate util;
|
extern crate util;
|
||||||
extern crate "msg" as servo_msg;
|
extern crate "msg" as servo_msg;
|
||||||
extern crate style;
|
extern crate style;
|
||||||
|
extern crate skia;
|
||||||
extern crate time;
|
extern crate time;
|
||||||
extern crate url;
|
extern crate url;
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,8 @@ use font_cache_task::FontCacheTask;
|
||||||
use font_context::FontContext;
|
use font_context::FontContext;
|
||||||
use paint_context::PaintContext;
|
use paint_context::PaintContext;
|
||||||
|
|
||||||
use azure::azure_hl::{SurfaceFormat, Color, DrawTarget, BackendType, StolenGLResources};
|
use azure::azure_hl::{SurfaceFormat, Color, DrawTarget, BackendType};
|
||||||
use azure::{AzFloat, AzGLNativeContextRef};
|
use azure::AzFloat;
|
||||||
use geom::matrix2d::Matrix2D;
|
use geom::matrix2d::Matrix2D;
|
||||||
use geom::point::Point2D;
|
use geom::point::Point2D;
|
||||||
use geom::rect::Rect;
|
use geom::rect::Rect;
|
||||||
|
@ -25,6 +25,7 @@ use servo_msg::compositor_msg::{LayerMetadata, PaintListener, ScrollPolicy};
|
||||||
use servo_msg::constellation_msg::Msg as ConstellationMsg;
|
use servo_msg::constellation_msg::Msg as ConstellationMsg;
|
||||||
use servo_msg::constellation_msg::{ConstellationChan, Failure, PipelineId};
|
use servo_msg::constellation_msg::{ConstellationChan, Failure, PipelineId};
|
||||||
use servo_msg::constellation_msg::PipelineExitType;
|
use servo_msg::constellation_msg::PipelineExitType;
|
||||||
|
use skia::SkiaGrGLNativeContextRef;
|
||||||
use util::geometry::{Au, ZERO_POINT};
|
use util::geometry::{Au, ZERO_POINT};
|
||||||
use util::opts;
|
use util::opts;
|
||||||
use util::smallvec::SmallVec;
|
use util::smallvec::SmallVec;
|
||||||
|
@ -518,7 +519,7 @@ impl WorkerThread {
|
||||||
// FIXME(pcwalton): Cache the components of draw targets (texture color buffer,
|
// FIXME(pcwalton): Cache the components of draw targets (texture color buffer,
|
||||||
// paintbuffers) instead of recreating them.
|
// paintbuffers) instead of recreating them.
|
||||||
let native_graphics_context =
|
let native_graphics_context =
|
||||||
native_graphics_context!(self) as *const _ as AzGLNativeContextRef;
|
native_graphics_context!(self) as *const _ as SkiaGrGLNativeContextRef;
|
||||||
let draw_target = DrawTarget::new_with_fbo(BackendType::Skia,
|
let draw_target = DrawTarget::new_with_fbo(BackendType::Skia,
|
||||||
native_graphics_context,
|
native_graphics_context,
|
||||||
size,
|
size,
|
||||||
|
@ -591,13 +592,11 @@ impl WorkerThread {
|
||||||
|
|
||||||
// GPU painting path:
|
// GPU painting path:
|
||||||
draw_target.make_current();
|
draw_target.make_current();
|
||||||
let StolenGLResources {
|
|
||||||
surface: azure_surface
|
|
||||||
} = draw_target.steal_gl_resources().unwrap();
|
|
||||||
|
|
||||||
// We mark the native surface as not leaking in case the surfaces
|
// We mark the native surface as not leaking in case the surfaces
|
||||||
// die on their way to the compositor task.
|
// die on their way to the compositor task.
|
||||||
let mut native_surface: NativeSurface = NativeSurface::from_azure_surface(azure_surface);
|
let mut native_surface: NativeSurface =
|
||||||
|
NativeSurface::from_draw_target_backing(draw_target.steal_draw_target_backing());
|
||||||
native_surface.mark_wont_leak();
|
native_surface.mark_wont_leak();
|
||||||
|
|
||||||
box LayerBuffer {
|
box LayerBuffer {
|
||||||
|
|
12
components/servo/Cargo.lock
generated
12
components/servo/Cargo.lock
generated
|
@ -35,7 +35,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "azure"
|
name = "azure"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/servo/rust-azure#72deb42903b12dc6f1924fa1757cd79d37b35429"
|
source = "git+https://github.com/servo/rust-azure#779233af589e797f07e9e2f3f45017fb55c33c68"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"core_foundation 0.1.0 (git+https://github.com/servo/rust-core-foundation)",
|
"core_foundation 0.1.0 (git+https://github.com/servo/rust-core-foundation)",
|
||||||
"core_graphics 0.1.0 (git+https://github.com/servo/rust-core-graphics)",
|
"core_graphics 0.1.0 (git+https://github.com/servo/rust-core-graphics)",
|
||||||
|
@ -43,7 +43,7 @@ dependencies = [
|
||||||
"egl 0.1.0 (git+https://github.com/servo/rust-egl)",
|
"egl 0.1.0 (git+https://github.com/servo/rust-egl)",
|
||||||
"freetype 0.1.0 (git+https://github.com/servo/rust-freetype)",
|
"freetype 0.1.0 (git+https://github.com/servo/rust-freetype)",
|
||||||
"geom 0.1.0 (git+https://github.com/servo/rust-geom)",
|
"geom 0.1.0 (git+https://github.com/servo/rust-geom)",
|
||||||
"skia-sys 0.0.20130412 (git+https://github.com/servo/skia?branch=upstream-2014-06-16)",
|
"skia 0.0.20130412 (git+https://github.com/servo/skia?branch=upstream-2014-06-16)",
|
||||||
"xlib 0.1.0 (git+https://github.com/servo/rust-xlib)",
|
"xlib 0.1.0 (git+https://github.com/servo/rust-xlib)",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -283,6 +283,7 @@ dependencies = [
|
||||||
"plugins 0.0.1",
|
"plugins 0.0.1",
|
||||||
"png 0.1.0 (git+https://github.com/servo/rust-png)",
|
"png 0.1.0 (git+https://github.com/servo/rust-png)",
|
||||||
"script_traits 0.0.1",
|
"script_traits 0.0.1",
|
||||||
|
"skia 0.0.20130412 (git+https://github.com/servo/skia?branch=upstream-2014-06-16)",
|
||||||
"stb_image 0.1.0 (git+https://github.com/servo/rust-stb-image)",
|
"stb_image 0.1.0 (git+https://github.com/servo/rust-stb-image)",
|
||||||
"style 0.0.1",
|
"style 0.0.1",
|
||||||
"time 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)",
|
"time 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -443,7 +444,7 @@ source = "git+https://github.com/bjz/gl-rs.git#230e6c9ed611cddfcb6682dee9686471d
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "layers"
|
name = "layers"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/servo/rust-layers#c17875c1951ffe2425733a596c2e6c10d9276720"
|
source = "git+https://github.com/servo/rust-layers#253fd0eb7e49b356393e14abdf34c76152cba10f"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"azure 0.1.0 (git+https://github.com/servo/rust-azure)",
|
"azure 0.1.0 (git+https://github.com/servo/rust-azure)",
|
||||||
"cgl 0.0.1 (git+https://github.com/servo/rust-cgl)",
|
"cgl 0.0.1 (git+https://github.com/servo/rust-cgl)",
|
||||||
|
@ -453,6 +454,7 @@ dependencies = [
|
||||||
"gleam 0.0.1 (git+https://github.com/servo/gleam)",
|
"gleam 0.0.1 (git+https://github.com/servo/gleam)",
|
||||||
"glx 0.0.1 (git+https://github.com/servo/rust-glx)",
|
"glx 0.0.1 (git+https://github.com/servo/rust-glx)",
|
||||||
"io_surface 0.1.0 (git+https://github.com/servo/rust-io-surface)",
|
"io_surface 0.1.0 (git+https://github.com/servo/rust-io-surface)",
|
||||||
|
"skia 0.0.20130412 (git+https://github.com/servo/skia?branch=upstream-2014-06-16)",
|
||||||
"xlib 0.1.0 (git+https://github.com/servo/rust-xlib)",
|
"xlib 0.1.0 (git+https://github.com/servo/rust-xlib)",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -681,9 +683,9 @@ dependencies = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "skia-sys"
|
name = "skia"
|
||||||
version = "0.0.20130412"
|
version = "0.0.20130412"
|
||||||
source = "git+https://github.com/servo/skia?branch=upstream-2014-06-16#aeb720b947ec463f780a0d00ab8485f902a83986"
|
source = "git+https://github.com/servo/skia?branch=upstream-2014-06-16#387777643df6df6ce8fb61ce069c7c60b32ab38c"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"expat-sys 2.1.0 (git+https://github.com/servo/libexpat)",
|
"expat-sys 2.1.0 (git+https://github.com/servo/libexpat)",
|
||||||
"freetype-sys 2.4.11 (git+https://github.com/servo/libfreetype2)",
|
"freetype-sys 2.4.11 (git+https://github.com/servo/libfreetype2)",
|
||||||
|
|
12
ports/cef/Cargo.lock
generated
12
ports/cef/Cargo.lock
generated
|
@ -34,7 +34,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "azure"
|
name = "azure"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/servo/rust-azure#72deb42903b12dc6f1924fa1757cd79d37b35429"
|
source = "git+https://github.com/servo/rust-azure#779233af589e797f07e9e2f3f45017fb55c33c68"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"core_foundation 0.1.0 (git+https://github.com/servo/rust-core-foundation)",
|
"core_foundation 0.1.0 (git+https://github.com/servo/rust-core-foundation)",
|
||||||
"core_graphics 0.1.0 (git+https://github.com/servo/rust-core-graphics)",
|
"core_graphics 0.1.0 (git+https://github.com/servo/rust-core-graphics)",
|
||||||
|
@ -42,7 +42,7 @@ dependencies = [
|
||||||
"egl 0.1.0 (git+https://github.com/servo/rust-egl)",
|
"egl 0.1.0 (git+https://github.com/servo/rust-egl)",
|
||||||
"freetype 0.1.0 (git+https://github.com/servo/rust-freetype)",
|
"freetype 0.1.0 (git+https://github.com/servo/rust-freetype)",
|
||||||
"geom 0.1.0 (git+https://github.com/servo/rust-geom)",
|
"geom 0.1.0 (git+https://github.com/servo/rust-geom)",
|
||||||
"skia-sys 0.0.20130412 (git+https://github.com/servo/skia?branch=upstream-2014-06-16)",
|
"skia 0.0.20130412 (git+https://github.com/servo/skia?branch=upstream-2014-06-16)",
|
||||||
"xlib 0.1.0 (git+https://github.com/servo/rust-xlib)",
|
"xlib 0.1.0 (git+https://github.com/servo/rust-xlib)",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -282,6 +282,7 @@ dependencies = [
|
||||||
"plugins 0.0.1",
|
"plugins 0.0.1",
|
||||||
"png 0.1.0 (git+https://github.com/servo/rust-png)",
|
"png 0.1.0 (git+https://github.com/servo/rust-png)",
|
||||||
"script_traits 0.0.1",
|
"script_traits 0.0.1",
|
||||||
|
"skia 0.0.20130412 (git+https://github.com/servo/skia?branch=upstream-2014-06-16)",
|
||||||
"stb_image 0.1.0 (git+https://github.com/servo/rust-stb-image)",
|
"stb_image 0.1.0 (git+https://github.com/servo/rust-stb-image)",
|
||||||
"style 0.0.1",
|
"style 0.0.1",
|
||||||
"time 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)",
|
"time 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -442,7 +443,7 @@ source = "git+https://github.com/bjz/gl-rs.git#230e6c9ed611cddfcb6682dee9686471d
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "layers"
|
name = "layers"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/servo/rust-layers#c17875c1951ffe2425733a596c2e6c10d9276720"
|
source = "git+https://github.com/servo/rust-layers#253fd0eb7e49b356393e14abdf34c76152cba10f"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"azure 0.1.0 (git+https://github.com/servo/rust-azure)",
|
"azure 0.1.0 (git+https://github.com/servo/rust-azure)",
|
||||||
"cgl 0.0.1 (git+https://github.com/servo/rust-cgl)",
|
"cgl 0.0.1 (git+https://github.com/servo/rust-cgl)",
|
||||||
|
@ -452,6 +453,7 @@ dependencies = [
|
||||||
"gleam 0.0.1 (git+https://github.com/servo/gleam)",
|
"gleam 0.0.1 (git+https://github.com/servo/gleam)",
|
||||||
"glx 0.0.1 (git+https://github.com/servo/rust-glx)",
|
"glx 0.0.1 (git+https://github.com/servo/rust-glx)",
|
||||||
"io_surface 0.1.0 (git+https://github.com/servo/rust-io-surface)",
|
"io_surface 0.1.0 (git+https://github.com/servo/rust-io-surface)",
|
||||||
|
"skia 0.0.20130412 (git+https://github.com/servo/skia?branch=upstream-2014-06-16)",
|
||||||
"xlib 0.1.0 (git+https://github.com/servo/rust-xlib)",
|
"xlib 0.1.0 (git+https://github.com/servo/rust-xlib)",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -698,9 +700,9 @@ dependencies = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "skia-sys"
|
name = "skia"
|
||||||
version = "0.0.20130412"
|
version = "0.0.20130412"
|
||||||
source = "git+https://github.com/servo/skia?branch=upstream-2014-06-16#aeb720b947ec463f780a0d00ab8485f902a83986"
|
source = "git+https://github.com/servo/skia?branch=upstream-2014-06-16#387777643df6df6ce8fb61ce069c7c60b32ab38c"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"expat-sys 2.1.0 (git+https://github.com/servo/libexpat)",
|
"expat-sys 2.1.0 (git+https://github.com/servo/libexpat)",
|
||||||
"freetype-sys 2.4.11 (git+https://github.com/servo/libfreetype2)",
|
"freetype-sys 2.4.11 (git+https://github.com/servo/libfreetype2)",
|
||||||
|
|
12
ports/gonk/Cargo.lock
generated
12
ports/gonk/Cargo.lock
generated
|
@ -15,7 +15,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "azure"
|
name = "azure"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/servo/rust-azure#72deb42903b12dc6f1924fa1757cd79d37b35429"
|
source = "git+https://github.com/servo/rust-azure#779233af589e797f07e9e2f3f45017fb55c33c68"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"core_foundation 0.1.0 (git+https://github.com/servo/rust-core-foundation)",
|
"core_foundation 0.1.0 (git+https://github.com/servo/rust-core-foundation)",
|
||||||
"core_graphics 0.1.0 (git+https://github.com/servo/rust-core-graphics)",
|
"core_graphics 0.1.0 (git+https://github.com/servo/rust-core-graphics)",
|
||||||
|
@ -23,7 +23,7 @@ dependencies = [
|
||||||
"egl 0.1.0 (git+https://github.com/servo/rust-egl)",
|
"egl 0.1.0 (git+https://github.com/servo/rust-egl)",
|
||||||
"freetype 0.1.0 (git+https://github.com/servo/rust-freetype)",
|
"freetype 0.1.0 (git+https://github.com/servo/rust-freetype)",
|
||||||
"geom 0.1.0 (git+https://github.com/servo/rust-geom)",
|
"geom 0.1.0 (git+https://github.com/servo/rust-geom)",
|
||||||
"skia-sys 0.0.20130412 (git+https://github.com/servo/skia?branch=upstream-2014-06-16)",
|
"skia 0.0.20130412 (git+https://github.com/servo/skia?branch=upstream-2014-06-16)",
|
||||||
"xlib 0.1.0 (git+https://github.com/servo/rust-xlib)",
|
"xlib 0.1.0 (git+https://github.com/servo/rust-xlib)",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -253,6 +253,7 @@ dependencies = [
|
||||||
"plugins 0.0.1",
|
"plugins 0.0.1",
|
||||||
"png 0.1.0 (git+https://github.com/servo/rust-png)",
|
"png 0.1.0 (git+https://github.com/servo/rust-png)",
|
||||||
"script_traits 0.0.1",
|
"script_traits 0.0.1",
|
||||||
|
"skia 0.0.20130412 (git+https://github.com/servo/skia?branch=upstream-2014-06-16)",
|
||||||
"stb_image 0.1.0 (git+https://github.com/servo/rust-stb-image)",
|
"stb_image 0.1.0 (git+https://github.com/servo/rust-stb-image)",
|
||||||
"style 0.0.1",
|
"style 0.0.1",
|
||||||
"time 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)",
|
"time 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -361,7 +362,7 @@ source = "git+https://github.com/bjz/gl-rs.git#230e6c9ed611cddfcb6682dee9686471d
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "layers"
|
name = "layers"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/servo/rust-layers#c17875c1951ffe2425733a596c2e6c10d9276720"
|
source = "git+https://github.com/servo/rust-layers#253fd0eb7e49b356393e14abdf34c76152cba10f"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"azure 0.1.0 (git+https://github.com/servo/rust-azure)",
|
"azure 0.1.0 (git+https://github.com/servo/rust-azure)",
|
||||||
"cgl 0.0.1 (git+https://github.com/servo/rust-cgl)",
|
"cgl 0.0.1 (git+https://github.com/servo/rust-cgl)",
|
||||||
|
@ -371,6 +372,7 @@ dependencies = [
|
||||||
"gleam 0.0.1 (git+https://github.com/servo/gleam)",
|
"gleam 0.0.1 (git+https://github.com/servo/gleam)",
|
||||||
"glx 0.0.1 (git+https://github.com/servo/rust-glx)",
|
"glx 0.0.1 (git+https://github.com/servo/rust-glx)",
|
||||||
"io_surface 0.1.0 (git+https://github.com/servo/rust-io-surface)",
|
"io_surface 0.1.0 (git+https://github.com/servo/rust-io-surface)",
|
||||||
|
"skia 0.0.20130412 (git+https://github.com/servo/skia?branch=upstream-2014-06-16)",
|
||||||
"xlib 0.1.0 (git+https://github.com/servo/rust-xlib)",
|
"xlib 0.1.0 (git+https://github.com/servo/rust-xlib)",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -616,9 +618,9 @@ dependencies = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "skia-sys"
|
name = "skia"
|
||||||
version = "0.0.20130412"
|
version = "0.0.20130412"
|
||||||
source = "git+https://github.com/servo/skia?branch=upstream-2014-06-16#aeb720b947ec463f780a0d00ab8485f902a83986"
|
source = "git+https://github.com/servo/skia?branch=upstream-2014-06-16#387777643df6df6ce8fb61ce069c7c60b32ab38c"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"expat-sys 2.1.0 (git+https://github.com/servo/libexpat)",
|
"expat-sys 2.1.0 (git+https://github.com/servo/libexpat)",
|
||||||
"freetype-sys 2.4.11 (git+https://github.com/servo/libfreetype2)",
|
"freetype-sys 2.4.11 (git+https://github.com/servo/libfreetype2)",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue