Index: remoting/codec/video_encoder.h |
diff --git a/remoting/codec/video_encoder.h b/remoting/codec/video_encoder.h |
index 9da447c1336f17394dd54b6d5273f81c4656f48a..bf33f935ea4cb7a2ae973111b85b39f177e15b1d 100644 |
--- a/remoting/codec/video_encoder.h |
+++ b/remoting/codec/video_encoder.h |
@@ -19,6 +19,7 @@ class VideoPacket; |
// interface is asynchronous to enable maximum throughput. |
class VideoEncoder { |
public: |
+ enum Flags { kRequestKeyFrame = 1 << 0 }; |
virtual ~VideoEncoder() {} |
// Request that the encoder provide lossless encoding, or color, if possible. |
@@ -29,7 +30,8 @@ class VideoEncoder { |
// then the encoder may return a packet (e.g. to top-off previously-encoded |
// portions of the frame to higher quality) or return nullptr to indicate that |
// there is no work to do. |
- virtual scoped_ptr<VideoPacket> Encode(const webrtc::DesktopFrame& frame) = 0; |
+ virtual scoped_ptr<VideoPacket> Encode(const webrtc::DesktopFrame& frame, |
+ uint32_t flags = 0) = 0; |
}; |
} // namespace remoting |