Chromium Code Reviews| Index: remoting/codec/video_decoder_verbatim.h |
| diff --git a/remoting/codec/video_decoder_row_based.h b/remoting/codec/video_decoder_verbatim.h |
| similarity index 71% |
| rename from remoting/codec/video_decoder_row_based.h |
| rename to remoting/codec/video_decoder_verbatim.h |
| index 3e017e3ab81d7ca92dc7548ad72e0e99c0f00136..390a8a807090937d71babf227b352aa632c2fd6f 100644 |
| --- a/remoting/codec/video_decoder_row_based.h |
| +++ b/remoting/codec/video_decoder_verbatim.h |
| @@ -2,8 +2,8 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#ifndef REMOTING_CODEC_VIDEO_DECODER_ROW_BASED_H_ |
| -#define REMOTING_CODEC_VIDEO_DECODER_ROW_BASED_H_ |
| +#ifndef REMOTING_CODEC_VIDEO_DECODER_VERBATIM_H_ |
| +#define REMOTING_CODEC_VIDEO_DECODER_VERBATIM_H_ |
| #include "base/compiler_specific.h" |
| #include "base/memory/scoped_ptr.h" |
| @@ -11,14 +11,11 @@ |
| namespace remoting { |
| -class Decompressor; |
| - |
| -class VideoDecoderRowBased : public VideoDecoder { |
| +class VideoDecoderVerbatim : public VideoDecoder { |
|
Wez
2012/10/17 22:25:16
nit: Add a comment explaining what this class does
Sergey Ulanov
2012/10/18 01:09:52
Done.
|
| public: |
| - virtual ~VideoDecoderRowBased(); |
| + virtual ~VideoDecoderVerbatim(); |
| - static VideoDecoderRowBased* CreateZlibDecoder(); |
| - static VideoDecoderRowBased* CreateVerbatimDecoder(); |
| + VideoDecoderVerbatim(); |
| // VideoDecoder implementation. |
| virtual bool IsReadyForData() OVERRIDE; |
| @@ -43,8 +40,6 @@ class VideoDecoderRowBased : public VideoDecoder { |
| kError, |
| }; |
| - VideoDecoderRowBased(Decompressor* decompressor, |
| - VideoPacketFormat::Encoding encoding); |
| // Helper method. Called from DecodePacket to updated state of the decoder. |
| void UpdateStateForPacket(const VideoPacket* packet); |
| @@ -55,12 +50,6 @@ class VideoDecoderRowBased : public VideoDecoder { |
| // Keeps track of the updating rect. |
| SkIRect clip_; |
| - // The compression for the input byte stream. |
| - scoped_ptr<Decompressor> decompressor_; |
| - |
| - // The encoding of the incoming stream. |
| - VideoPacketFormat::Encoding encoding_; |
| - |
| // The position in the row that we are updating. |
| int row_pos_; |
| @@ -76,9 +65,9 @@ class VideoDecoderRowBased : public VideoDecoder { |
| // The bitmap holding the remote screen bits. |
| scoped_array<uint8> screen_buffer_; |
| - DISALLOW_COPY_AND_ASSIGN(VideoDecoderRowBased); |
| + DISALLOW_COPY_AND_ASSIGN(VideoDecoderVerbatim); |
| }; |
| } // namespace remoting |
| -#endif // REMOTING_CODEC_VIDEO_DECODER_ROW_BASED_H_ |
| +#endif // REMOTING_CODEC_VIDEO_DECODER_VERBATIM_H_ |