aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2020-02-24 14:06:32 -0500
committerJosh Matthews <josh@joshmatthews.net>2020-03-09 21:11:27 -0400
commit085e17b73c5472b3d15cfb86b059a547734d2b75 (patch)
tree4da6306a1ec2535f18ae39de1f827f7040906ecc
parentb4d7ec1c99259f936c9e34de157b652707d308de (diff)
downloadservo-085e17b73c5472b3d15cfb86b059a547734d2b75.tar.gz
servo-085e17b73c5472b3d15cfb86b059a547734d2b75.zip
Remove XR canvas dirtying step.
-rw-r--r--Cargo.lock4
-rw-r--r--components/script/dom/xrsession.rs8
2 files changed, 2 insertions, 10 deletions
diff --git a/Cargo.lock b/Cargo.lock
index e1a3dccc218..f8ea31cf907 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -6650,7 +6650,7 @@ dependencies = [
[[package]]
name = "webxr"
version = "0.0.1"
-source = "git+https://github.com/servo/webxr#3ac3e83f37ff64c74c847a610a8cefba9b907a9c"
+source = "git+https://github.com/servo/webxr#bf3d92b744a3e48d9addb76f0eef45320ac33960"
dependencies = [
"bindgen",
"crossbeam-channel",
@@ -6672,7 +6672,7 @@ dependencies = [
[[package]]
name = "webxr-api"
version = "0.0.1"
-source = "git+https://github.com/servo/webxr#3ac3e83f37ff64c74c847a610a8cefba9b907a9c"
+source = "git+https://github.com/servo/webxr#bf3d92b744a3e48d9addb76f0eef45320ac33960"
dependencies = [
"euclid",
"ipc-channel",
diff --git a/components/script/dom/xrsession.rs b/components/script/dom/xrsession.rs
index ecb78615897..9e6696bdcc0 100644
--- a/components/script/dom/xrsession.rs
+++ b/components/script/dom/xrsession.rs
@@ -412,14 +412,6 @@ impl XRSession {
"WEBXR PROFILING [raf execute]:\t{}ms",
(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) {