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

Unified Diff: media/base/pipeline.cc

Issue 1409123005: Add methods for telling V8 how much memory audio/video is using. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Add unittests. Created 5 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
Index: media/base/pipeline.cc
diff --git a/media/base/pipeline.cc b/media/base/pipeline.cc
index 387470aec070dd242e5486419f9efb15d859a2fa..9e2509d00d377b054b917cf8ce5918ec1346ab7a 100644
--- a/media/base/pipeline.cc
+++ b/media/base/pipeline.cc
@@ -472,6 +472,8 @@ void Pipeline::OnUpdateStatistics(const PipelineStatistics& stats) {
statistics_.video_bytes_decoded += stats.video_bytes_decoded;
statistics_.video_frames_decoded += stats.video_frames_decoded;
statistics_.video_frames_dropped += stats.video_frames_dropped;
+ statistics_.audio_memory_usage += stats.audio_memory_usage;
+ statistics_.video_memory_usage += stats.video_memory_usage;
}
void Pipeline::StartTask() {

Powered by Google App Engine
This is Rietveld 408576698