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

Unified Diff: media/base/pipeline_status.h

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_status.h
diff --git a/media/base/pipeline_status.h b/media/base/pipeline_status.h
index daec9237988e7c809b3e3d572e529c4f09100c60..9117dae04736ce3519cda95a1cb7709220e8a42b 100644
--- a/media/base/pipeline_status.h
+++ b/media/base/pipeline_status.h
@@ -40,17 +40,12 @@ typedef base::Callback<void(PipelineStatus)> PipelineStatusCB;
// TODO(scherkus): this should be moved alongside host interface definitions.
xhwang 2015/10/27 23:32:40 nit: Is this still accurate?
DaleCurtis 2015/10/28 01:08:28 Done.
struct PipelineStatistics {
- PipelineStatistics()
- : audio_bytes_decoded(0),
- video_bytes_decoded(0),
- video_frames_decoded(0),
- video_frames_dropped(0) {
- }
-
- uint32 audio_bytes_decoded; // Should be uint64?
- uint32 video_bytes_decoded; // Should be uint64?
- uint32 video_frames_decoded;
- uint32 video_frames_dropped;
+ uint32 audio_bytes_decoded = 0; // Should be uint64?
+ uint32 video_bytes_decoded = 0; // Should be uint64?
+ uint32 video_frames_decoded = 0;
+ uint32 video_frames_dropped = 0;
+ int64_t audio_memory_usage = 0;
+ int64_t video_memory_usage = 0;
};
// Used for updating pipeline statistics.

Powered by Google App Engine
This is Rietveld 408576698