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

Unified Diff: remoting/codec/video_encoder.h

Issue 13983010: Use webrtc::DesktopCapturer for screen capturer implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | « remoting/codec/video_decoder_vp8_unittest.cc ('k') | remoting/codec/video_encoder_verbatim.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/codec/video_encoder.h
diff --git a/remoting/codec/video_encoder.h b/remoting/codec/video_encoder.h
index 81179c4da0862f9acb94f0abad069300d56df3d6..a89e1e70ccd349e751edfe8bb7a8a47bb0ef30ff 100644
--- a/remoting/codec/video_encoder.h
+++ b/remoting/codec/video_encoder.h
@@ -7,19 +7,19 @@
#include "base/basictypes.h"
#include "base/callback.h"
-#include "media/base/data_buffer.h"
-namespace media {
-class ScreenCaptureData;
-} // namespace media
+class SkRegion;
+
+namespace webrtc {
+class DesktopFrame;
+} // namespace webrtc
namespace remoting {
class VideoPacket;
-// A class to perform the task of encoding a continous stream of
-// images.
-// This class operates asynchronously to enable maximum throughput.
+// A class to perform the task of encoding a continuous stream of images. The
+// interface is asynchronous to enable maximum throughput.
class VideoEncoder {
public:
@@ -29,15 +29,10 @@ class VideoEncoder {
virtual ~VideoEncoder() {}
- // Encode an image stored in |capture_data|.
- //
- // If |key_frame| is true, the encoder should not reference
- // previous encode and encode the full frame.
- //
- // When encoded data is available, partial or full |data_available_callback|
- // is called.
- virtual void Encode(scoped_refptr<media::ScreenCaptureData> capture_data,
- bool key_frame,
+ // Encode an image stored in |frame|. Doesn't take ownership of |frame|. When
+ // encoded data is available, partial or full |data_available_callback| is
+ // called.
+ virtual void Encode(const webrtc::DesktopFrame* frame,
const DataAvailableCallback& data_available_callback) = 0;
};
« no previous file with comments | « remoting/codec/video_decoder_vp8_unittest.cc ('k') | remoting/codec/video_encoder_verbatim.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698