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

Side by Side Diff: media/base/android/media_codec_video_decoder.h

Issue 1367403003: Added UMA metrics for MediaSourcePlayer and MediaCodecPlayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mtplayer-drm
Patch Set: Attempt to fix clang compilation 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BASE_ANDROID_MEDIA_CODEC_VIDEO_DECODER_H_ 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_CODEC_VIDEO_DECODER_H_
6 #define MEDIA_BASE_ANDROID_MEDIA_CODEC_VIDEO_DECODER_H_ 6 #define MEDIA_BASE_ANDROID_MEDIA_CODEC_VIDEO_DECODER_H_
7 7
8 #include <set> 8 #include <set>
9 #include "media/base/android/media_codec_decoder.h" 9 #include "media/base/android/media_codec_decoder.h"
10 #include "ui/gfx/geometry/size.h" 10 #include "ui/gfx/geometry/size.h"
(...skipping 10 matching lines...) Expand all
21 21
22 // For parameters see media_codec_decoder.h 22 // For parameters see media_codec_decoder.h
23 // update_current_time_cb: callback that reports current playback time. 23 // update_current_time_cb: callback that reports current playback time.
24 // Called for released output frame, 24 // Called for released output frame,
25 // video_size_changed_cb: reports the new video size, 25 // video_size_changed_cb: reports the new video size,
26 // codec_created_cb: reports that video codec has been created. A controller 26 // codec_created_cb: reports that video codec has been created. A controller
27 // class might use it to release more resources so that this 27 // class might use it to release more resources so that this
28 // decoder can use them. 28 // decoder can use them.
29 MediaCodecVideoDecoder( 29 MediaCodecVideoDecoder(
30 const scoped_refptr<base::SingleThreadTaskRunner>& media_runner, 30 const scoped_refptr<base::SingleThreadTaskRunner>& media_runner,
31 FrameStatistics* frame_statistics,
31 const base::Closure& request_data_cb, 32 const base::Closure& request_data_cb,
32 const base::Closure& starvation_cb, 33 const base::Closure& starvation_cb,
33 const base::Closure& drained_requested_cb, 34 const base::Closure& drained_requested_cb,
34 const base::Closure& stop_done_cb, 35 const base::Closure& stop_done_cb,
35 const base::Closure& waiting_for_decryption_key_cb, 36 const base::Closure& waiting_for_decryption_key_cb,
36 const base::Closure& error_cb, 37 const base::Closure& error_cb,
37 const SetTimeCallback& update_current_time_cb, 38 const SetTimeCallback& update_current_time_cb,
38 const VideoSizeChangedCallback& video_size_changed_cb, 39 const VideoSizeChangedCallback& video_size_changed_cb,
39 const base::Closure& codec_created_cb); 40 const base::Closure& codec_created_cb);
40 ~MediaCodecVideoDecoder() override; 41 ~MediaCodecVideoDecoder() override;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 122
122 // Mantain the last seen PTS for stand-alone EOS. 123 // Mantain the last seen PTS for stand-alone EOS.
123 base::TimeDelta last_seen_pts_; 124 base::TimeDelta last_seen_pts_;
124 125
125 DISALLOW_COPY_AND_ASSIGN(MediaCodecVideoDecoder); 126 DISALLOW_COPY_AND_ASSIGN(MediaCodecVideoDecoder);
126 }; 127 };
127 128
128 } // namespace media 129 } // namespace media
129 130
130 #endif // MEDIA_BASE_ANDROID_MEDIA_CODEC_VIDEO_DECODER_H_ 131 #endif // MEDIA_BASE_ANDROID_MEDIA_CODEC_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « media/base/android/media_codec_player.cc ('k') | media/base/android/media_codec_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698