Commit 129655ca authored by Jongheon Kim's avatar Jongheon Kim Committed by Commit Bot

Change data type unsigned longs to unsigned long longs

This patch changes the data type of video and audio decode counts
in the IDL

Bug: 887593
Change-Id: Ib988825d6db4eb7b1d18a3d2b5d2b4c2b791e882
Reviewed-on: https://chromium-review.googlesource.com/1240573Reviewed-by: default avatarDave Tapuska <dtapuska@chromium.org>
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
Cr-Commit-Position: refs/heads/master@{#593963}
parent b9a6f93f
......@@ -3805,20 +3805,16 @@ void HTMLMediaElement::MarkCaptionAndSubtitleTracksAsUnconfigured() {
}
}
unsigned HTMLMediaElement::webkitAudioDecodedByteCount() const {
uint64_t HTMLMediaElement::webkitAudioDecodedByteCount() const {
if (!GetWebMediaPlayer())
return 0;
// TODO(dtapuska): https://crbug.com/887593 Should the IDL change to be a
// unsigned long long?
return static_cast<unsigned>(GetWebMediaPlayer()->AudioDecodedByteCount());
return GetWebMediaPlayer()->AudioDecodedByteCount();
}
unsigned HTMLMediaElement::webkitVideoDecodedByteCount() const {
uint64_t HTMLMediaElement::webkitVideoDecodedByteCount() const {
if (!GetWebMediaPlayer())
return 0;
// TODO(dtapuska): https://crbug.com/887593 Should the IDL change to be a
// unsigned long long?
return static_cast<unsigned>(GetWebMediaPlayer()->VideoDecodedByteCount());
return GetWebMediaPlayer()->VideoDecodedByteCount();
}
bool HTMLMediaElement::IsURLAttribute(const Attribute& attribute) const {
......
......@@ -204,8 +204,8 @@ class CORE_EXPORT HTMLMediaElement
void FlingingStopped();
// statistics
unsigned webkitAudioDecodedByteCount() const;
unsigned webkitVideoDecodedByteCount() const;
uint64_t webkitAudioDecodedByteCount() const;
uint64_t webkitVideoDecodedByteCount() const;
// media source extensions
void CloseMediaSource();
......
......@@ -92,6 +92,6 @@ enum CanPlayTypeResult { "" /* empty string */, "maybe", "probably" };
// Non-standard APIs
// The number of bytes consumed by the media decoder.
[MeasureAs=PrefixedAudioDecodedByteCount] readonly attribute unsigned long webkitAudioDecodedByteCount;
[MeasureAs=PrefixedVideoDecodedByteCount] readonly attribute unsigned long webkitVideoDecodedByteCount;
[MeasureAs=PrefixedAudioDecodedByteCount] readonly attribute unsigned long long webkitAudioDecodedByteCount;
[MeasureAs=PrefixedVideoDecodedByteCount] readonly attribute unsigned long long webkitVideoDecodedByteCount;
};
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