Commit 90e04de1 authored by tzik's avatar tzik Committed by Commit Bot

Use DOMHighResTimeStamp in VideoPlaybackQuality and MIDIOutput

VideoPlaybackQuality.idl and MIDIOutput.idl uses double as the time type.
However, the specs are updated at some point to usp DOMHighResTimeStamp.

https://wicg.github.io/media-playback-quality/#idl-def-videoplaybackquality
https://webaudio.github.io/web-midi-api/#MIDIOutput

Change-Id: Ib9d7e9a5c066ab673c880cbda3d22817fcff961d
Reviewed-on: https://chromium-review.googlesource.com/892841Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Taiju Tsuiki <tzik@chromium.org>
Cr-Commit-Position: refs/heads/master@{#532824}
parent 03664c4c
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
[ [
RuntimeEnabled=MediaSourceExperimental RuntimeEnabled=MediaSourceExperimental
] interface VideoPlaybackQuality { ] interface VideoPlaybackQuality {
readonly attribute double creationTime; readonly attribute DOMHighResTimeStamp creationTime;
readonly attribute unsigned long totalVideoFrames; readonly attribute unsigned long totalVideoFrames;
readonly attribute unsigned long droppedVideoFrames; readonly attribute unsigned long droppedVideoFrames;
readonly attribute unsigned long corruptedVideoFrames; readonly attribute unsigned long corruptedVideoFrames;
......
...@@ -32,6 +32,6 @@ ...@@ -32,6 +32,6 @@
interface MIDIOutput : MIDIPort { interface MIDIOutput : MIDIPort {
// TODO(toyoshim): implement void clear() // TODO(toyoshim): implement void clear()
[RaisesException] void send(Uint8Array data, optional double timestamp); [RaisesException] void send(Uint8Array data, optional DOMHighResTimeStamp timestamp);
[RaisesException] void send(sequence<unsigned long> data, optional double timestamp); [RaisesException] void send(sequence<unsigned long> data, optional DOMHighResTimeStamp timestamp);
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment