Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUse simpleservo embedding API for Magic Leap #22871
Conversation
highfive
commented
Feb 12, 2019
|
Heads up! This PR modifies the following files:
|
highfive
commented
Feb 12, 2019
|
r? @asajeffrey |
|
My hot take is that this is much nicer. I'll have a less-hot take tomorrow. |
|
OK, this looks much much nicer. The use of the |
| @@ -101,6 +84,16 @@ pub struct MLApp(*mut c_void); | |||
|
|
|||
| const LOG_LEVEL: log::LevelFilter = log::LevelFilter::Info; | |||
|
|
|||
| fn call<F>(f: F) -> Result<(), &'static str> | |||
This comment has been minimized.
This comment has been minimized.
|
|
||
| let gl = gl_glue::egl::init().expect("EGL initialization failure"); | ||
| info!("OpenGL version {}", gl.get_string(gl::VERSION)); |
This comment has been minimized.
This comment has been minimized.
asajeffrey
Feb 13, 2019
Member
I think we can get rid of this info!, it was useful while debugging but not any more.
| where | ||
| F: FnOnce(&mut ServoGlue) -> Result<(), &'static str>, | ||
| { | ||
| SERVO.with(|s| match s.borrow_mut().as_mut() { |
This comment has been minimized.
This comment has been minimized.
asajeffrey
Feb 13, 2019
Member
Sigh, libsimpleservo uses a global variable? This is a bit of a step back, libmlservo passed the servo instance around as a parameter.
This comment has been minimized.
This comment has been minimized.
|
@bors-servo r=paul,asajeffrey |
|
|
Use simpleservo embedding API for Magic Leap This removes the duplication between the two ports and makes it easier to improve all of our embeddings simultaneously. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22065 - [x] These changes do not require tests because no automated tests for embedded devices. <!-- 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/22871) <!-- Reviewable:end -->
|
|
|
@bors-servo r=ajeffrey,paul |
Use simpleservo embedding API for Magic Leap This removes the duplication between the two ports and makes it easier to improve all of our embeddings simultaneously. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22065 - [x] These changes do not require tests because no automated tests for embedded devices. <!-- 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/22871) <!-- Reviewable:end -->
|
|
|
@bors-servo retry |
Use simpleservo embedding API for Magic Leap This removes the duplication between the two ports and makes it easier to improve all of our embeddings simultaneously. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22065 - [x] These changes do not require tests because no automated tests for embedded devices. <!-- 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/22871) <!-- Reviewable:end -->
|
|
|
@bors-servo r=ajeffrey,paul |
|
|
Use simpleservo embedding API for Magic Leap This removes the duplication between the two ports and makes it easier to improve all of our embeddings simultaneously. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22065 - [x] These changes do not require tests because no automated tests for embedded devices. <!-- 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/22871) <!-- Reviewable:end -->
|
|
jdm commentedFeb 12, 2019
•
edited by SimonSapin
This removes the duplication between the two ports and makes it easier to improve all of our embeddings simultaneously.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is