mirror of
https://github.com/servo/servo.git
synced 2025-08-24 06:45:33 +01:00
Update web-platform-tests to revision 46aeb6c47e00b0cd3ebcab3735ec1aba7806ca79
This commit is contained in:
parent
7b6e60883f
commit
2ac52623c2
3570 changed files with 12529 additions and 11891 deletions
|
@ -551,8 +551,11 @@ class MockRuntime {
|
|||
|
||||
// Mojo function implementations.
|
||||
|
||||
_injectAdditionalFrameData(options, frameData) {
|
||||
}
|
||||
|
||||
// XRFrameDataProvider implementation.
|
||||
getFrameData() {
|
||||
getFrameData(options) {
|
||||
let mojo_space_reset = this.send_mojo_space_reset_;
|
||||
this.send_mojo_space_reset_ = false;
|
||||
if (this.pose_) {
|
||||
|
@ -577,18 +580,21 @@ class MockRuntime {
|
|||
now += diff;
|
||||
now *= 1000000;
|
||||
|
||||
let frameData = {
|
||||
pose: this.pose_,
|
||||
mojoSpaceReset: mojo_space_reset,
|
||||
inputState: input_state,
|
||||
timeDelta: {
|
||||
microseconds: now,
|
||||
},
|
||||
frameId: this.next_frame_id_++,
|
||||
bufferHolder: null,
|
||||
bufferSize: {},
|
||||
};
|
||||
this._injectAdditionalFrameData(options, frameData);
|
||||
|
||||
return Promise.resolve({
|
||||
frameData: {
|
||||
pose: this.pose_,
|
||||
mojoSpaceReset: mojo_space_reset,
|
||||
inputState: input_state,
|
||||
timeDelta: {
|
||||
microseconds: now,
|
||||
},
|
||||
frameId: this.next_frame_id_++,
|
||||
bufferHolder: null,
|
||||
bufferSize: {}
|
||||
}
|
||||
frameData: frameData,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue