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

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: Addressed most of the comments 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 18 matching lines...) Expand all
29 MediaCodecVideoDecoder( 29 MediaCodecVideoDecoder(
30 const scoped_refptr<base::SingleThreadTaskRunner>& media_runner, 30 const scoped_refptr<base::SingleThreadTaskRunner>& media_runner,
31 const base::Closure& request_data_cb, 31 const base::Closure& request_data_cb,
32 const base::Closure& starvation_cb, 32 const base::Closure& starvation_cb,
33 const base::Closure& drained_requested_cb, 33 const base::Closure& drained_requested_cb,
34 const base::Closure& stop_done_cb, 34 const base::Closure& stop_done_cb,
35 const base::Closure& key_required_cb, 35 const base::Closure& key_required_cb,
36 const base::Closure& error_cb, 36 const base::Closure& error_cb,
37 const SetTimeCallback& update_current_time_cb, 37 const SetTimeCallback& update_current_time_cb,
38 const VideoSizeChangedCallback& video_size_changed_cb, 38 const VideoSizeChangedCallback& video_size_changed_cb,
39 const base::Closure& codec_created_cb); 39 const base::Closure& codec_created_cb,
40 FrameStatistics* frame_statistics);
40 ~MediaCodecVideoDecoder() override; 41 ~MediaCodecVideoDecoder() override;
41 42
42 const char* class_name() const override; 43 const char* class_name() const override;
43 44
44 bool HasStream() const override; 45 bool HasStream() const override;
45 void SetDemuxerConfigs(const DemuxerConfigs& configs) override; 46 void SetDemuxerConfigs(const DemuxerConfigs& configs) override;
46 bool IsContentEncrypted() const override; 47 bool IsContentEncrypted() const override;
47 void ReleaseDecoderResources() override; 48 void ReleaseDecoderResources() override;
48 void ReleaseMediaCodec() override; 49 void ReleaseMediaCodec() override;
49 50
(...skipping 71 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

Powered by Google App Engine
This is Rietveld 408576698