Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Servo3D immersive demo for magicleap #23546

Merged
merged 1 commit into from Jun 14, 2019

Conversation

@asajeffrey
Copy link
Member

asajeffrey commented Jun 10, 2019

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 #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

highfive commented Jun 10, 2019

Heads up! This PR modifies the following files:

@asajeffrey
Copy link
Member Author

asajeffrey commented Jun 10, 2019

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
Member Author

asajeffrey commented Jun 10, 2019

Deduped. Thanks @Eijebong!

@asajeffrey
Copy link
Member Author

asajeffrey commented Jun 11, 2019

@highfive highfive assigned Manishearth and unassigned jdm Jun 11, 2019
Copy link
Member

Manishearth left a comment

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

@asajeffrey asajeffrey force-pushed the asajeffrey:magicleap-webvr-second-cut branch from 125b20d to cdd6f3b Jun 12, 2019
@asajeffrey
Copy link
Member Author

asajeffrey commented Jun 12, 2019

@bors-servo
Copy link
Contributor

bors-servo commented Jun 12, 2019

📌 Commit cdd6f3b has been approved by @Manishearth

@bors-servo
Copy link
Contributor

bors-servo commented Jun 12, 2019

Testing commit cdd6f3b with merge a3ea262...

bors-servo added 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 -->
@asajeffrey
Copy link
Member Author

asajeffrey commented Jun 12, 2019

@bors-servo r=Manishearth

@bors-servo
Copy link
Contributor

bors-servo commented Jun 12, 2019

📌 Commit 76016cc has been approved by Manishearth

@bors-servo
Copy link
Contributor

bors-servo commented Jun 12, 2019

Testing commit 76016cc with merge 50d0fed...

bors-servo added 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
Contributor

bors-servo commented Jun 12, 2019

💔 Test failed - status-taskcluster

@CYBAI
Copy link
Collaborator

CYBAI commented Jun 13, 2019

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
Member Author

asajeffrey commented Jun 13, 2019

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

@bors-servo
Copy link
Contributor

bors-servo commented Jun 13, 2019

Testing commit 9c9b677 with merge 98d3dbb...

bors-servo added 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 asajeffrey:magicleap-webvr-second-cut branch from 9c9b677 to 010eff2 Jun 13, 2019
@asajeffrey
Copy link
Member Author

asajeffrey commented Jun 13, 2019

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

@bors-servo
Copy link
Contributor

bors-servo commented Jun 13, 2019

📌 Commit 010eff2 has been approved by Manishearth

bors-servo added 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
Contributor

bors-servo commented Jun 13, 2019

Trying commit 010eff2 with merge 012cc9c...

@asajeffrey
Copy link
Member Author

asajeffrey commented Jun 13, 2019

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

@asajeffrey asajeffrey force-pushed the asajeffrey:magicleap-webvr-second-cut branch from 010eff2 to 0b48ff4 Jun 13, 2019
@asajeffrey
Copy link
Member Author

asajeffrey commented Jun 13, 2019

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

@bors-servo
Copy link
Contributor

bors-servo commented Jun 13, 2019

📌 Commit 0b48ff4 has been approved by Manishearth

@jdm
Copy link
Member

jdm commented Jun 13, 2019

@bors-servo
Copy link
Contributor

bors-servo commented Jun 13, 2019

Testing commit 0b48ff4 with merge 9213331...

bors-servo added 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
Contributor

bors-servo commented Jun 14, 2019

☀️ 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
3 of 4 checks passed
3 of 4 checks passed
continuous-integration/appveyor/pr AppVeyor build failed
Details
Taskcluster (pull_request) TaskGroup: success
Details
Travis CI - Pull Request Build Passed
Details
homu Test successful
Details
@bors-servo bors-servo mentioned this pull request Jun 14, 2019
3 of 4 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

6 participants
You can’t perform that action at this time.