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

Unified Diff: media/blink/webmediaplayer_impl.h

Issue 1480213005: Run Demuxer::GetMemoryUsage() on media thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert comment change Created 5 years 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 | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/webmediaplayer_impl.h
diff --git a/media/blink/webmediaplayer_impl.h b/media/blink/webmediaplayer_impl.h
index c3ad6a630a6ac18c70b46df36201763627d8830f..43f23da201d5f2e5b0520017997272edb7bc2e04 100644
--- a/media/blink/webmediaplayer_impl.h
+++ b/media/blink/webmediaplayer_impl.h
@@ -241,7 +241,10 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerImpl
// Called at low frequency to tell external observers how much memory we're
// using for video playback. Called by |memory_usage_reporting_timer_|.
+ // Memory usage reporting is done in two steps, because |demuxer_| must be
+ // accessed on the media thread.
void ReportMemoryUsage();
+ void FinishMemoryUsageReport(int64_t demuxer_memory_usage);
blink::WebLocalFrame* frame_;
« no previous file with comments | « no previous file | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698