LCOV - code coverage report
Current view: top level - dom/media - MediaStreamVideoSink.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 5 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 6 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* vim:set ts=2 sw=2 sts=2 et cindent: */
       3             : /* This Source Code Form is subject to the terms of the Mozilla Public
       4             :  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
       5             :  * You can obtain one at http://mozilla.org/MPL/2.0/. */
       6             : 
       7             : #ifndef MEDIASTREAMVIDEOSINK_H_
       8             : #define MEDIASTREAMVIDEOSINK_H_
       9             : 
      10             : #include "mozilla/Pair.h"
      11             : 
      12             : #include "gfxPoint.h"
      13             : #include "MediaStreamListener.h"
      14             : 
      15             : namespace mozilla {
      16             : 
      17             : class VideoFrameContainer;
      18             : 
      19             : /**
      20             :  * Base class of MediaStreamVideoSink family. This is the output of MediaStream.
      21             :  */
      22           0 : class MediaStreamVideoSink : public DirectMediaStreamTrackListener {
      23             : public:
      24             :   // Method of DirectMediaStreamTrackListener.
      25             :   void NotifyRealtimeTrackData(MediaStreamGraph* aGraph,
      26             :                                StreamTime aTrackOffset,
      27             :                                const MediaSegment& aMedia) override;
      28             : 
      29             :   // Call on any thread
      30             :   virtual void SetCurrentFrames(const VideoSegment& aSegment) = 0;
      31             :   virtual void ClearFrames() = 0;
      32             : 
      33           0 :   virtual VideoFrameContainer* AsVideoFrameContainer() { return nullptr; }
      34           0 :   virtual void Invalidate() {}
      35             : 
      36           0 :   virtual MediaStreamVideoSink* AsMediaStreamVideoSink() override { return this; }
      37             : 
      38             : protected:
      39           0 :   virtual ~MediaStreamVideoSink() {};
      40             : };
      41             : 
      42             : } // namespace mozilla
      43             : 
      44             : #endif /* MEDIASTREAMVIDEOSINK_H_ */

Generated by: LCOV version 1.13