Chromium Code Reviews| Index: remoting/codec/video_encoder.h |
| diff --git a/remoting/codec/video_encoder.h b/remoting/codec/video_encoder.h |
| index 99018f7d4e6c4ad2cde7cd2454722576f1f06351..1fb3ab5fdf1ba6ef2091ae9960d17fa22a7505d8 100644 |
| --- a/remoting/codec/video_encoder.h |
| +++ b/remoting/codec/video_encoder.h |
| @@ -9,6 +9,8 @@ |
| #include <memory> |
| +#include "remoting/protocol/session_config.h" |
|
joedow
2016/04/28 22:53:54
I think you can forward declare SessionConfig sinc
Hzj_jie
2016/05/03 19:07:05
Done.
|
| + |
| namespace webrtc { |
| class DesktopFrame; |
| } // namespace webrtc |
| @@ -34,6 +36,9 @@ class VideoEncoder { |
| // there is no work to do. |
| virtual std::unique_ptr<VideoPacket> Encode(const webrtc::DesktopFrame& frame, |
| uint32_t flags) = 0; |
| + |
| + static std::unique_ptr<VideoEncoder> Create( |
| + const protocol::SessionConfig& config); |
| }; |
| } // namespace remoting |