diff options
Diffstat (limited to 'remoting/base/encoder_row_based.cc')
-rw-r--r-- | remoting/base/encoder_row_based.cc | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/remoting/base/encoder_row_based.cc b/remoting/base/encoder_row_based.cc index 6159207a..e035a42 100644 --- a/remoting/base/encoder_row_based.cc +++ b/remoting/base/encoder_row_based.cc @@ -42,8 +42,6 @@ EncoderRowBased::EncoderRowBased(Compressor* compressor, VideoPacketFormat::Encoding encoding) : encoding_(encoding), compressor_(compressor), - screen_width_(0), - screen_height_(0), packet_size_(kPacketSize) { } @@ -52,8 +50,6 @@ EncoderRowBased::EncoderRowBased(Compressor* compressor, int packet_size) : encoding_(encoding), compressor_(compressor), - screen_width_(0), - screen_height_(0), packet_size_(packet_size) { } @@ -151,13 +147,6 @@ void EncoderRowBased::PrepareUpdateStart(const gfx::Rect& rect, format->set_width(rect.width()); format->set_height(rect.height()); format->set_encoding(encoding_); - if ((capture_data_->width() != screen_width_) || - (capture_data_->height() != screen_height_)) { - screen_width_ = capture_data_->width(); - screen_height_ = capture_data_->height(); - format->set_screen_width(screen_width_); - format->set_screen_height(screen_height_); - } } uint8* EncoderRowBased::GetOutputBuffer(VideoPacket* packet, size_t size) { |