summaryrefslogtreecommitdiffstats
path: root/remoting/base/decoder.h
diff options
context:
space:
mode:
authorajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-27 20:48:58 +0000
committerajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-27 20:48:58 +0000
commit8372e30b34bcb940203829cf9c23909664f0e6ca (patch)
tree2207caa141724cd0cbaa55a264635f745583cf22 /remoting/base/decoder.h
parent3b52c980420f07c2a18c7589873227d5c5ebf49f (diff)
downloadchromium_src-8372e30b34bcb940203829cf9c23909664f0e6ca.zip
chromium_src-8372e30b34bcb940203829cf9c23909664f0e6ca.tar.gz
chromium_src-8372e30b34bcb940203829cf9c23909664f0e6ca.tar.bz2
Revert "Add in a new FrameConsumer interface, Decode API, and a RectangleUpdateDecoder abstraction."
Reverting r60703 due to build break. TBR=willchan git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60705 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/base/decoder.h')
-rw-r--r--remoting/base/decoder.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/remoting/base/decoder.h b/remoting/base/decoder.h
index c8c77a7..75ffa03 100644
--- a/remoting/base/decoder.h
+++ b/remoting/base/decoder.h
@@ -90,30 +90,6 @@ class Decoder {
// of BeginDecode() / EndDecode().
virtual bool IsStarted() { return started_; }
- // --- NEW API ---
- // TODO(ajwong): This API is incorrect in the face of a streaming decode
- // protocol like VP8. However, it breaks the layering abstraction by
- // depending on the network packet protocol buffer type. I'm going to go
- // forward with it as is, and then refactor again to support streaming
- // decodes.
-
- // Initializes the decoder to draw into the given |frame|. The |clip|
- // specifies the region to draw into. The clip region must fit inside
- // the dimensions of frame. Failure to do so will CHECK Fail.
- virtual void Initialize(scoped_refptr<media::VideoFrame> frame,
- const gfx::Rect& clip) {}
-
- // Reset the decoder to an uninitialized state. Release all references to
- // the initialized |frame|. Initialize() must be called before the decoder
- // is used again.
- virtual void Reset() {}
-
- // Feeds more data into the decoder.
- virtual void DecodeBytes(const std::string& encoded_bytes) {}
-
- // Returns true if decoder is ready to accept data via ProcessRectangleData.
- virtual bool IsReadyForData() { return false; }
-
protected:
// Every decoder will have two internal states because there are three
// kinds of messages send to PartialDecode().