| Index: remoting/codec/webrtc_video_encoder.h
|
| diff --git a/remoting/codec/webrtc_video_encoder.h b/remoting/codec/webrtc_video_encoder.h
|
| index be0f988a6b48d83395458bc0fa6efd1ed3d5f0cd..bf097c273e131ab9023c1981447003aaa105d2d9 100644
|
| --- a/remoting/codec/webrtc_video_encoder.h
|
| +++ b/remoting/codec/webrtc_video_encoder.h
|
| @@ -53,12 +53,13 @@ class WebrtcVideoEncoder {
|
|
|
| virtual ~WebrtcVideoEncoder() {}
|
|
|
| - // Encode an image stored in |frame|. If |frame.updated_region()| is empty
|
| - // then the encoder may return a packet (e.g. to top-off previously-encoded
|
| + // Encode an image stored in |frame|. If frame.updated_region() is empty
|
| + // then the encoder may return a frame (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.
|
| + // there is no work to do. |frame| may be nullptr. This case must be handled
|
| + // the same as if frame.updated_region() is empty.
|
| virtual std::unique_ptr<EncodedFrame> Encode(
|
| - const webrtc::DesktopFrame& frame,
|
| + const webrtc::DesktopFrame* frame,
|
| const FrameParams& param) = 0;
|
| };
|
|
|
|
|