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

Unified Diff: remoting/codec/video_encoder_vp8.h

Issue 23477059: Simplify VideoEncoder interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
Index: remoting/codec/video_encoder_vp8.h
diff --git a/remoting/codec/video_encoder_vp8.h b/remoting/codec/video_encoder_vp8.h
index 912c8450b042f17c294b440928dc24857e35cca8..2e1ade1dd4e8c89014589eb58ba6367ce3147b26 100644
--- a/remoting/codec/video_encoder_vp8.h
+++ b/remoting/codec/video_encoder_vp8.h
@@ -25,9 +25,8 @@ class VideoEncoderVp8 : public VideoEncoder {
virtual ~VideoEncoderVp8();
// VideoEncoder interface.
- virtual void Encode(
- const webrtc::DesktopFrame* frame,
- const DataAvailableCallback& data_available_callback) OVERRIDE;
+ virtual scoped_ptr<VideoPacket> Encode(
+ const webrtc::DesktopFrame& frame) OVERRIDE;
private:
FRIEND_TEST_ALL_PREFIXES(VideoEncoderVp8Test, AlignAndClipRect);
@@ -42,7 +41,7 @@ class VideoEncoderVp8 : public VideoEncoder {
// |updated_region|.
//
// TODO(sergeyu): Update this code to use webrtc::DesktopRegion.
- void PrepareImage(const webrtc::DesktopFrame* frame,
+ void PrepareImage(const webrtc::DesktopFrame& frame,
SkRegion* updated_region);
// Update the active map according to |updated_region|. Active map is then

Powered by Google App Engine
This is Rietveld 408576698