diff options
author | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-27 20:48:58 +0000 |
---|---|---|
committer | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-27 20:48:58 +0000 |
commit | 8372e30b34bcb940203829cf9c23909664f0e6ca (patch) | |
tree | 2207caa141724cd0cbaa55a264635f745583cf22 /remoting/client/rectangle_update_decoder.h | |
parent | 3b52c980420f07c2a18c7589873227d5c5ebf49f (diff) | |
download | chromium_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/client/rectangle_update_decoder.h')
-rw-r--r-- | remoting/client/rectangle_update_decoder.h | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/remoting/client/rectangle_update_decoder.h b/remoting/client/rectangle_update_decoder.h deleted file mode 100644 index 5f18e12..0000000 --- a/remoting/client/rectangle_update_decoder.h +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef REMOTING_CLIENT_RECTANGLE_UPDATE_DECODER_H -#define REMOTING_CLIENT_RECTANGLE_UPDATE_DECODER_H - -#include "base/scoped_ptr.h" -#include "base/task.h" -#include "media/base/video_frame.h" -#include "remoting/base/decoder.h" // For UpdatedRects. - -class MessageLoop; - -namespace remoting { - -class FrameConsumer; -class RectangleFormat; -class RectangleUpdatePacket; - -// TODO(ajwong): Re-examine this API, especially with regards to how error -// conditions on each step are reported. Should they be CHECKs? Logs? Other? -class RectangleUpdateDecoder { - public: - RectangleUpdateDecoder(MessageLoop* message_loop, - FrameConsumer* consumer); - ~RectangleUpdateDecoder(); - - // Decodes the contents of |packet| calling OnPartialFrameOutput() in the - // regsitered as data is avaialable. DecodePacket may keep a reference to - // |packet| so the |packet| must remain alive and valid until |done| is - // executed. - // - // TODO(ajwong): Should packet be a const pointer to make the lifetime - // more clear? - void DecodePacket(const RectangleUpdatePacket& packet, Task* done); - - private: - static bool IsValidPacket(const RectangleUpdatePacket& packet); - - void InitializeDecoder(const RectangleFormat& format, Task* done); - - void ProcessPacketData(const RectangleUpdatePacket& packet, Task* done); - - // Pointers to infrastructure objects. Not owned. - MessageLoop* message_loop_; - FrameConsumer* consumer_; - - scoped_ptr<Decoder> decoder_; - UpdatedRects updated_rects_; - - // Framebuffer for the decoder. - scoped_refptr<media::VideoFrame> frame_; -}; - -} // namespace remoting - -DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::RectangleUpdateDecoder); - -#endif // REMOTING_CLIENT_RECTANGLE_UPDATE_DECODER_H |