Chromium Code Reviews| Index: media/base/media_log_event.h |
| diff --git a/media/base/media_log_event.h b/media/base/media_log_event.h |
| index 9d4e15e0a141a1d159d02e602abf27ef4d19350a..a942012d117f13f26e41109fd0e3c7d25c06e270 100644 |
| --- a/media/base/media_log_event.h |
| +++ b/media/base/media_log_event.h |
| @@ -40,6 +40,36 @@ struct MediaLogEvent { |
| // params: "pipeline_state": <string name of the state>. |
| PIPELINE_STATE_CHANGED, |
| + // An error has occurred in the pipeline. |
| + // params: "pipeline_error": <string name of the error>. |
| + PIPELINE_ERROR, |
| + |
| + // The size of the video has been determined. |
| + // params: "width": <integral width of the video>. |
| + // "height": <integral height of the video>. |
| + VIDEO_SIZE_SET, |
| + |
| + // A property of the pipeline has been set by a filter. |
| + // These take a single parameter based upon the name of the event and of |
| + // the appropriate type. e.g. DURATION_SET: "duration" of type TimeDelta. |
| + TIME_SET, |
|
scherkus (not reviewing)
2011/08/10 23:14:42
a few these events fire like... A LOT (esp. time)
Scott Franklin
2011/08/11 21:29:14
The ones that get set a lot are time, buffered tim
scherkus (not reviewing)
2011/08/11 23:09:00
I was referring to the performance impact of const
Scott Franklin
2011/08/12 01:35:33
Ah. I did look into it a bit.
A system could exist
|
| + DURATION_SET, |
| + BUFFERED_TIME_SET, |
| + TOTAL_BYTES_SET, |
| + BUFFERED_BYTES_SET, |
| + STREAMING_SET, |
| + LOADED_SET, |
| + NETWORK_ACTIVITY_SET, |
| + CURRENT_READ_POSITION_SET, |
| + |
| + // Playback has ended. |
| + // params: none. |
| + ENDED, |
| + |
| + // The audio renderer has been disabled. |
| + // params: none. |
| + AUDIO_RENDERER_DISABLED, |
| + |
| // The extents of the sliding buffer have changed. |
| // params: "buffer_start": <first buffered byte>. |
| // "buffer_current": <current offset>. |