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

Unified Diff: talk/media/base/fakemediaprocessor.h

Issue 1296113002: Remove cricket::VideoProcessor and AddVideoProcessor() functionality (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « talk/media/base/fakemediaengine.h ('k') | talk/media/base/mediaengine.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/media/base/fakemediaprocessor.h
diff --git a/talk/media/base/fakemediaprocessor.h b/talk/media/base/fakemediaprocessor.h
index a1f5ac9a670f1319c1f196f41792ad9e766f7f96..0100b7b6d2ab5d4213e77cc3a6807920ad090407 100644
--- a/talk/media/base/fakemediaprocessor.h
+++ b/talk/media/base/fakemediaprocessor.h
@@ -28,20 +28,16 @@
#ifndef TALK_MEDIA_BASE_FAKEMEDIAPROCESSOR_H_
#define TALK_MEDIA_BASE_FAKEMEDIAPROCESSOR_H_
-#include "talk/media/base/videoprocessor.h"
#include "talk/media/base/voiceprocessor.h"
namespace cricket {
class AudioFrame;
-class FakeMediaProcessor : public VoiceProcessor, public VideoProcessor {
+class FakeMediaProcessor : public VoiceProcessor {
public:
FakeMediaProcessor()
- : voice_frame_count_(0),
- video_frame_count_(0),
- drop_frames_(false),
- dropped_frame_count_(0) {
+ : voice_frame_count_(0) {
}
virtual ~FakeMediaProcessor() {}
@@ -50,28 +46,14 @@ class FakeMediaProcessor : public VoiceProcessor, public VideoProcessor {
AudioFrame* frame) {
++voice_frame_count_;
}
- virtual void OnFrame(uint32 ssrc, VideoFrame* frame_ptr, bool* drop_frame) {
- ++video_frame_count_;
- if (drop_frames_) {
- *drop_frame = true;
- ++dropped_frame_count_;
- }
- }
virtual void OnVoiceMute(uint32 ssrc, bool muted) {}
virtual void OnVideoMute(uint32 ssrc, bool muted) {}
int voice_frame_count() const { return voice_frame_count_; }
- int video_frame_count() const { return video_frame_count_; }
-
- void set_drop_frames(bool b) { drop_frames_ = b; }
- int dropped_frame_count() const { return dropped_frame_count_; }
private:
// TODO(janahan): make is a map so that we can multiple ssrcs
int voice_frame_count_;
- int video_frame_count_;
- bool drop_frames_;
- int dropped_frame_count_;
};
} // namespace cricket
« no previous file with comments | « talk/media/base/fakemediaengine.h ('k') | talk/media/base/mediaengine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698