Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(777)

Unified Diff: Source/core/html/HTMLMediaElement.cpp

Issue 28903009: Add UseCounters for webkitAudioDecodedByteCount/webkitVideoDecodedByteCount (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/page/UseCounter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLMediaElement.cpp
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp
index 6bbaa55e159f88b6aba19211a46898769f8962ff..bfe0cb59a18cb5a9c5297995d607311492f2feba 100644
--- a/Source/core/html/HTMLMediaElement.cpp
+++ b/Source/core/html/HTMLMediaElement.cpp
@@ -3547,6 +3547,7 @@ void HTMLMediaElement::setClosedCaptionsVisible(bool closedCaptionVisible)
unsigned HTMLMediaElement::webkitAudioDecodedByteCount() const
{
+ UseCounter::count(document(), UseCounter::PrefixedAudioDecodedByteCount);
if (!m_player)
return 0;
return m_player->audioDecodedByteCount();
@@ -3554,6 +3555,7 @@ unsigned HTMLMediaElement::webkitAudioDecodedByteCount() const
unsigned HTMLMediaElement::webkitVideoDecodedByteCount() const
{
+ UseCounter::count(document(), UseCounter::PrefixedVideoDecodedByteCount);
if (!m_player)
return 0;
return m_player->videoDecodedByteCount();
« no previous file with comments | « no previous file | Source/core/page/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698