diff options
Diffstat (limited to 'remoting/base/encoder_verbatim.cc')
-rw-r--r-- | remoting/base/encoder_verbatim.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/remoting/base/encoder_verbatim.cc b/remoting/base/encoder_verbatim.cc index 0bbe4e8..1185bff 100644 --- a/remoting/base/encoder_verbatim.cc +++ b/remoting/base/encoder_verbatim.cc @@ -6,9 +6,10 @@ #include "base/logging.h" #include "gfx/rect.h" -#include "media/base/data_buffer.h" +#include "net/base/io_buffer.h" #include "remoting/base/capture_data.h" #include "remoting/base/util.h" +#include "remoting/proto/video.pb.h" namespace remoting { @@ -17,8 +18,6 @@ namespace remoting { // Add support for splitting across packets and remove the 10*. static const int kPacketSize = 10 * 1024 * 1024; -using media::DataBuffer; - EncoderVerbatim::EncoderVerbatim() : packet_size_(kPacketSize) { } @@ -87,7 +86,6 @@ void EncoderVerbatim::PrepareUpdateStart(const gfx::Rect& rect, format->set_width(rect.width()); format->set_height(rect.height()); format->set_encoding(VideoPacketFormat::ENCODING_VERBATIM); - format->set_pixel_format(capture_data_->pixel_format()); } uint8* EncoderVerbatim::GetOutputBuffer(VideoPacket* packet, size_t size) { |