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

Unified Diff: remoting/codec/video_encoder_vp8.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_encoder_verbatim.cc ('k') | remoting/codec/video_encoder_vp8.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/codec/video_encoder_vp8.h
diff --git a/remoting/codec/video_encoder_vp8.h b/remoting/codec/video_encoder_vp8.h
index f26fad31d6709c31791e317cb3b8771407b6bc57..912c8450b042f17c294b440928dc24857e35cca8 100644
--- a/remoting/codec/video_encoder_vp8.h
+++ b/remoting/codec/video_encoder_vp8.h
@@ -12,6 +12,10 @@
typedef struct vpx_codec_ctx vpx_codec_ctx_t;
typedef struct vpx_image vpx_image_t;
+namespace webrtc {
+class DesktopSize;
+} // namespace webrtc
+
namespace remoting {
// A class that uses VP8 to perform encoding.
@@ -20,23 +24,25 @@ class VideoEncoderVp8 : public VideoEncoder {
VideoEncoderVp8();
virtual ~VideoEncoderVp8();
+ // VideoEncoder interface.
virtual void Encode(
- scoped_refptr<media::ScreenCaptureData> capture_data,
- bool key_frame,
+ const webrtc::DesktopFrame* frame,
const DataAvailableCallback& data_available_callback) OVERRIDE;
private:
FRIEND_TEST_ALL_PREFIXES(VideoEncoderVp8Test, AlignAndClipRect);
// Initialize the encoder. Returns true if successful.
- bool Init(const SkISize& size);
+ bool Init(const webrtc::DesktopSize& size);
// Destroy the encoder.
void Destroy();
// Prepare |image_| for encoding. Write updated rectangles into
// |updated_region|.
- void PrepareImage(scoped_refptr<media::ScreenCaptureData> capture_data,
+ //
+ // TODO(sergeyu): Update this code to use webrtc::DesktopRegion.
+ void PrepareImage(const webrtc::DesktopFrame* frame,
SkRegion* updated_region);
// Update the active map according to |updated_region|. Active map is then
« no previous file with comments | « remoting/codec/video_encoder_verbatim.cc ('k') | remoting/codec/video_encoder_vp8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698