mirror of
https://github.com/servo/servo.git
synced 2025-07-16 20:03:39 +01:00
Update Glutin to pick up borderless window performance fixes on Mac.
Large framerate improvement in browser.html. This takes the Glutin upgrade intended for #11130 but does not address the underlying issue. A FIXME has been added.
This commit is contained in:
parent
2ff6c35263
commit
7af62f3947
3 changed files with 13 additions and 13 deletions
10
components/servo/Cargo.lock
generated
10
components/servo/Cargo.lock
generated
|
@ -288,7 +288,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cocoa"
|
name = "cocoa"
|
||||||
version = "0.4.3"
|
version = "0.4.4"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"bitflags 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -881,7 +881,7 @@ dependencies = [
|
||||||
"net_traits 0.0.1",
|
"net_traits 0.0.1",
|
||||||
"script_traits 0.0.1",
|
"script_traits 0.0.1",
|
||||||
"servo-egl 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
"servo-egl 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"servo-glutin 0.4.23 (registry+https://github.com/rust-lang/crates.io-index)",
|
"servo-glutin 0.4.25 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"style_traits 0.0.1",
|
"style_traits 0.0.1",
|
||||||
"url 1.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
"url 1.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"user32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"user32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -2113,12 +2113,12 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "servo-glutin"
|
name = "servo-glutin"
|
||||||
version = "0.4.23"
|
version = "0.4.25"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"android_glue 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
"android_glue 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"cgl 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
"cgl 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"cocoa 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
"cocoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"core-foundation 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
"core-foundation 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"core-graphics 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
"core-graphics 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"dwmapi-sys 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"dwmapi-sys 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -2155,7 +2155,7 @@ dependencies = [
|
||||||
"servo-egl 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
"servo-egl 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"servo-fontconfig 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"servo-fontconfig 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"servo-freetype-sys 2.4.11 (registry+https://github.com/rust-lang/crates.io-index)",
|
"servo-freetype-sys 2.4.11 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"servo-glutin 0.4.23 (registry+https://github.com/rust-lang/crates.io-index)",
|
"servo-glutin 0.4.25 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"x11 2.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
"x11 2.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
12
ports/cef/Cargo.lock
generated
12
ports/cef/Cargo.lock
generated
|
@ -2,7 +2,7 @@
|
||||||
name = "embedding"
|
name = "embedding"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cocoa 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
"cocoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"compositing 0.0.1",
|
"compositing 0.0.1",
|
||||||
"devtools 0.0.1",
|
"devtools 0.0.1",
|
||||||
"euclid 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
"euclid 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -262,7 +262,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cocoa"
|
name = "cocoa"
|
||||||
version = "0.4.3"
|
version = "0.4.4"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"bitflags 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -790,7 +790,7 @@ dependencies = [
|
||||||
"net_traits 0.0.1",
|
"net_traits 0.0.1",
|
||||||
"script_traits 0.0.1",
|
"script_traits 0.0.1",
|
||||||
"servo-egl 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
"servo-egl 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"servo-glutin 0.4.23 (registry+https://github.com/rust-lang/crates.io-index)",
|
"servo-glutin 0.4.25 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"style_traits 0.0.1",
|
"style_traits 0.0.1",
|
||||||
"url 1.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
"url 1.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"user32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"user32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -1998,12 +1998,12 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "servo-glutin"
|
name = "servo-glutin"
|
||||||
version = "0.4.23"
|
version = "0.4.25"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"android_glue 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
"android_glue 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"cgl 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
"cgl 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"cocoa 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
"cocoa 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"core-foundation 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
"core-foundation 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"core-graphics 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
"core-graphics 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"dwmapi-sys 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"dwmapi-sys 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -2040,7 +2040,7 @@ dependencies = [
|
||||||
"servo-egl 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
"servo-egl 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"servo-fontconfig 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"servo-fontconfig 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"servo-freetype-sys 2.4.11 (registry+https://github.com/rust-lang/crates.io-index)",
|
"servo-freetype-sys 2.4.11 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"servo-glutin 0.4.23 (registry+https://github.com/rust-lang/crates.io-index)",
|
"servo-glutin 0.4.25 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"x11 2.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
"x11 2.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -81,7 +81,6 @@ fn builder_with_platform_options(mut builder: glutin::WindowBuilder) -> glutin::
|
||||||
builder = builder.with_activation_policy(ActivationPolicy::Prohibited)
|
builder = builder.with_activation_policy(ActivationPolicy::Prohibited)
|
||||||
}
|
}
|
||||||
builder.with_app_name(String::from("Servo"))
|
builder.with_app_name(String::from("Servo"))
|
||||||
.with_transparent_corner_radius(8)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(target_os = "macos"))]
|
#[cfg(not(target_os = "macos"))]
|
||||||
|
@ -261,7 +260,8 @@ impl Window {
|
||||||
Event::Resized(width, height) => {
|
Event::Resized(width, height) => {
|
||||||
self.event_queue.borrow_mut().push(WindowEvent::Resize(Size2D::typed(width, height)));
|
self.event_queue.borrow_mut().push(WindowEvent::Resize(Size2D::typed(width, height)));
|
||||||
}
|
}
|
||||||
Event::MouseInput(element_state, mouse_button) => {
|
Event::MouseInput(element_state, mouse_button, _) => {
|
||||||
|
// FIXME(#11130, pcwalton): The third field should be used.
|
||||||
if mouse_button == MouseButton::Left ||
|
if mouse_button == MouseButton::Left ||
|
||||||
mouse_button == MouseButton::Right {
|
mouse_button == MouseButton::Right {
|
||||||
let mouse_pos = self.mouse_pos.get();
|
let mouse_pos = self.mouse_pos.get();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue