Skip to content

Add Servo3D immersive demo for magicleap - #23546

Merged
bors-servo merged 1 commit into
servo:masterfrom
asajeffrey:magicleap-webvr-second-cut
Jun 14, 2019
Merged

bors-servo merged 1 commit into
servo:masterfrom
asajeffrey:magicleap-webvr-second-cut

Conversation

@asajeffrey

@asajeffrey asajeffrey commented Jun 10, 2019 •

Copy link
Copy Markdown
Contributor

An immersive mode demo for magicleap.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors (apart from dupes, sigh)
  • These changes fix Immersive mode for magicleap #22402 (GitHub issue number if applicable)
  • These changes do not require tests because it's a new platform

This change is Reviewable

@highfive

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @wafflespeanut: python/servo/package_commands.py

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jun 10, 2019
@asajeffrey

Copy link
Copy Markdown
Contributor Author

Sigh, dupes:

./Cargo.lock:1: duplicate versions for package `winapi`
	The following packages depend on version 0.2.8 from 'crates.io':
		iovec
		kernel32-sys
		mio
		miow
		ws2_32-sys
	The following packages depend on version 0.3.6 from 'crates.io':
		ansi_term
		atty
		backtrace
		clipboard-win
		dirs
		dwrote
		dwrote
		font-kit
		glutin
		glutin
		glutin_egl_sys
		libloading
		memmap
		memmap
		msdos_time
		net2
		offscreen_gl_context
		parking_lot_core
		parking_lot_core
		parking_lot_core
		rand
		rand
		rand
		rand_jitter
		rand_os
		remove_dir_all
		same-file
		servo
		servo_allocator
		simpleservo
		tempfile
		time
		walkdir
		winapi-util
		wincolor
		winit
		winit
./Cargo.lock:1: duplicate versions for package `winit`
	The following packages depend on version 0.18.0 from 'crates.io':
		glutin
	The following packages depend on version 0.19.1 from 'crates.io':
		glutin
./Cargo.lock:1: duplicate versions for package `glutin`
	The following packages depend on version 0.19.0 from 'crates.io':
		servo-skia
	The following packages depend on version 0.21.0 from 'crates.io':
		rust-webvr
		servo

@asajeffrey

Copy link
Copy Markdown
Contributor Author

Deduped. Thanks @Eijebong!

@asajeffrey

Copy link
Copy Markdown
Contributor Author

r? @Manishearth

@highfive highfive assigned Manishearth and unassigned jdm Jun 11, 2019

@Manishearth Manishearth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me, haven't looked too closely at the cpp but it seems fine.

@asajeffrey
asajeffrey force-pushed the magicleap-webvr-second-cut branch from 125b20d to cdd6f3b Compare June 12, 2019 14:35
@asajeffrey

Copy link
Copy Markdown
Contributor Author

@bors-servo r=@Manishearth

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit cdd6f3b has been approved by @Manishearth

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Jun 12, 2019
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit cdd6f3b with merge a3ea262...

bors-servo pushed a commit that referenced this pull request Jun 12, 2019
…shearth

Add Servo3D immersive demo for magicleap

<!-- Please describe your changes on the following line: -->

An immersive mode demo for magicleap.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors (apart from dupes, sigh)
- [X] These changes fix #22402 (GitHub issue number if applicable)
- [X] These changes do not require tests because it's a new platform

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23546)
<!-- Reviewable:end -->
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Jun 12, 2019
@asajeffrey

Copy link
Copy Markdown
Contributor Author

@bors-servo r=Manishearth

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 76016cc has been approved by Manishearth

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Jun 12, 2019
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 76016cc with merge 50d0fed...

bors-servo pushed a commit that referenced this pull request Jun 12, 2019
…hearth

Add Servo3D immersive demo for magicleap

<!-- Please describe your changes on the following line: -->

An immersive mode demo for magicleap.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors (apart from dupes, sigh)
- [X] These changes fix #22402 (GitHub issue number if applicable)
- [X] These changes do not require tests because it's a new platform

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23546)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - status-taskcluster

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Jun 12, 2019
@CYBAI

CYBAI commented Jun 13, 2019

Copy link
Copy Markdown
Member

In Android ARM build:

error[E0061]: this function takes 3 parameters but 4 parameters were supplied
   --> ports/libsimpleservo/jniapi/src/lib.rs:109:44
    |
109 |         gl_glue::egl::init().and_then(|gl| simpleservo::init(opts, gl, wakeup, callbacks))
    |                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters

error[E0560]: struct `simpleservo::InitOptions` has no field named `vr_pointer`
   --> ports/libsimpleservo/jniapi/src/lib.rs:699:9
    |
699 |         vr_pointer: if vr_pointer.is_null() {
    |         ^^^^^^^^^^ `simpleservo::InitOptions` does not have this field
    |
    = note: available fields are: `args`, `url`, `coordinates`, `density`, `embedder_callbacks`, `enable_subpixel_text_antialiasing`

error: aborting due to 2 previous errors

In Linux Tidy and Windows build:

+ ./mach build --dev --libsimpleservo
    Downloading  crates ...
     Downloaded  cbindgen v0.8.0
      Compiling  simpleservo v0.0.1 (/repo/ports/libsimpleservo/api)
      Compiling  rust-webvr v0.11.4
      Compiling  cbindgen v0.8.0
      Compiling  webvr v0.0.1 (/repo/components/webvr)
      Compiling  compositing v0.0.1 (/repo/components/compositing)
      Compiling  simpleservo_capi v0.0.1 (/repo/ports/libsimpleservo/capi)
      Compiling  canvas v0.0.1 (/repo/components/canvas)
      Compiling  constellation v0.0.1 (/repo/components/constellation)
      Compiling  libservo v0.0.1 (/repo/components/servo)
   error[E0560]  : struct `simpleservo::InitOptions` has no field named `vr_pointer` 
      -->  ports/libsimpleservo/capi/src/lib.rs:99:9 
       | 
99     |          vr_pointer: if opts.vr_pointer.is_null() { 
       |             ^^^^^^^^^^     `simpleservo::InitOptions` does not have this field 
       | 
       =   note : available fields are: `args`, `url`, `coordinates`, `density`, `embedder_callbacks`, `enable_subpixel_text_antialiasing` 

   error[E0061]  : this function takes 3 parameters but 4 parameters were supplied 
       -->  ports/libsimpleservo/capi/src/lib.rs:110:5 
        | 
110     |      simpleservo::init(opts, gl, wakeup, callbacks).unwrap(); 
        |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^     expected 3 parameters 

   error  : aborting due to 2 previous errors 

  Some errors have detailed explanations: E0061, E0560. 
  For more information about an error, try `rustc --explain E0061`. 
  error:  Could not compile `simpleservo_capi`.

@asajeffrey

Copy link
Copy Markdown
Contributor Author

Yeah, my changes to libsimpleservo didn't get reflected in the other embeddings.

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-needs-squash Some (or all) of the commits in the PR should be combined. labels Jun 13, 2019
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 9c9b677 with merge 98d3dbb...

bors-servo pushed a commit that referenced this pull request Jun 13, 2019
…hearth

Add Servo3D immersive demo for magicleap

<!-- Please describe your changes on the following line: -->

An immersive mode demo for magicleap.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors (apart from dupes, sigh)
- [X] These changes fix #22402 (GitHub issue number if applicable)
- [X] These changes do not require tests because it's a new platform

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23546)
<!-- Reviewable:end -->
@asajeffrey
asajeffrey force-pushed the magicleap-webvr-second-cut branch from 9c9b677 to 010eff2 Compare June 13, 2019 19:45
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Jun 13, 2019
@asajeffrey

Copy link
Copy Markdown
Contributor Author

Hmm, the build never finished, let's try again.@bors-servo r=Manishearth

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 010eff2 has been approved by Manishearth

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Jun 13, 2019
bors-servo pushed a commit that referenced this pull request Jun 13, 2019
Add Servo3D immersive demo for magicleap

<!-- Please describe your changes on the following line: -->

An immersive mode demo for magicleap.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors (apart from dupes, sigh)
- [X] These changes fix #22402 (GitHub issue number if applicable)
- [X] These changes do not require tests because it's a new platform

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23546)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Trying commit 010eff2 with merge 012cc9c...

@jdm

jdm commented Jun 13, 2019

Copy link
Copy Markdown
Member

@asajeffrey

Copy link
Copy Markdown
Contributor Author

I think I fixed those in the most recent force-push.

@asajeffrey
asajeffrey force-pushed the magicleap-webvr-second-cut branch from 010eff2 to 0b48ff4 Compare June 13, 2019 20:04
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Jun 13, 2019
@asajeffrey

Copy link
Copy Markdown
Contributor Author

And that last fix broke test-tidy. Of course it did. @bors-servo r=Manishearth

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 0b48ff4 has been approved by Manishearth

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Jun 13, 2019
@jdm

jdm commented Jun 13, 2019

Copy link
Copy Markdown
Member

@bors-servo try-

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 0b48ff4 with merge 9213331...

bors-servo pushed a commit that referenced this pull request Jun 13, 2019
…hearth

Add Servo3D immersive demo for magicleap

<!-- Please describe your changes on the following line: -->

An immersive mode demo for magicleap.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors (apart from dupes, sigh)
- [X] These changes fix #22402 (GitHub issue number if applicable)
- [X] These changes do not require tests because it's a new platform

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23546)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - arm64, linux-rel-css, linux-rel-wpt, status-taskcluster
Approved by: Manishearth
Pushing 9213331 to master...

@bors-servo
bors-servo merged commit 0b48ff4 into servo:master Jun 14, 2019
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jun 14, 2019
@bors-servo bors-servo mentioned this pull request Jun 14, 2019
3 of 4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Immersive mode for magicleap

6 participants