mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
Remove XR canvas dirtying step.
This commit is contained in:
parent
b4d7ec1c99
commit
085e17b73c
2 changed files with 2 additions and 10 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -6650,7 +6650,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "webxr"
|
name = "webxr"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
source = "git+https://github.com/servo/webxr#3ac3e83f37ff64c74c847a610a8cefba9b907a9c"
|
source = "git+https://github.com/servo/webxr#bf3d92b744a3e48d9addb76f0eef45320ac33960"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bindgen",
|
"bindgen",
|
||||||
"crossbeam-channel",
|
"crossbeam-channel",
|
||||||
|
@ -6672,7 +6672,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "webxr-api"
|
name = "webxr-api"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
source = "git+https://github.com/servo/webxr#3ac3e83f37ff64c74c847a610a8cefba9b907a9c"
|
source = "git+https://github.com/servo/webxr#bf3d92b744a3e48d9addb76f0eef45320ac33960"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"euclid",
|
"euclid",
|
||||||
"ipc-channel",
|
"ipc-channel",
|
||||||
|
|
|
@ -412,14 +412,6 @@ impl XRSession {
|
||||||
"WEBXR PROFILING [raf execute]:\t{}ms",
|
"WEBXR PROFILING [raf execute]:\t{}ms",
|
||||||
(time::precise_time_ns() - raf_start) as f64 / 1_000_000.
|
(time::precise_time_ns() - raf_start) as f64 / 1_000_000.
|
||||||
);
|
);
|
||||||
|
|
||||||
// If the canvas element is attached to the DOM, it is now dirty,
|
|
||||||
// and we need to trigger a reflow.
|
|
||||||
base_layer
|
|
||||||
.Context()
|
|
||||||
.Canvas()
|
|
||||||
.upcast::<Node>()
|
|
||||||
.dirty(NodeDamage::OtherNodeDamage);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn update_inline_projection_matrix(&self) {
|
fn update_inline_projection_matrix(&self) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue