Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(394)

Unified Diff: remoting/codec/video_decoder.h

Issue 1298863003: Remove VideoDecoder::Initialize(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/codec/codec_test.cc ('k') | remoting/codec/video_decoder_verbatim.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/codec/video_decoder.h
diff --git a/remoting/codec/video_decoder.h b/remoting/codec/video_decoder.h
index b3048a90885bbc72f1d60e8b0164d4db835b9cf6..378abb0098cd9d6697ce60a6e0f04ec682bb5943 100644
--- a/remoting/codec/video_decoder.h
+++ b/remoting/codec/video_decoder.h
@@ -18,6 +18,7 @@ namespace remoting {
// Interface for a decoder that takes a stream of bytes from the network and
// outputs frames of data.
+// TODO(sergeyu): Simplify this interface.
class VideoDecoder {
public:
static const int kBytesPerPixel = 4;
@@ -25,10 +26,6 @@ class VideoDecoder {
VideoDecoder() {}
virtual ~VideoDecoder() {}
- // Initializes the decoder and sets the output dimensions.
- // |screen size| must not be empty.
- virtual void Initialize(const webrtc::DesktopSize& screen_size) = 0;
-
// Feeds more data into the decoder. Returns true if |packet| was processed
// and the frame can be displayed now.
virtual bool DecodePacket(const VideoPacket& packet) = 0;
« no previous file with comments | « remoting/codec/codec_test.cc ('k') | remoting/codec/video_decoder_verbatim.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698