| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef REMOTING_CLIENT_RECTANGLE_UPDATE_DECODER_H | 5 #ifndef REMOTING_CLIENT_RECTANGLE_UPDATE_DECODER_H_ |
| 6 #define REMOTING_CLIENT_RECTANGLE_UPDATE_DECODER_H | 6 #define REMOTING_CLIENT_RECTANGLE_UPDATE_DECODER_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/task.h" | 9 #include "base/task.h" |
| 10 #include "media/base/video_frame.h" | 10 #include "media/base/video_frame.h" |
| 11 #include "remoting/base/decoder.h" | 11 #include "remoting/base/decoder.h" |
| 12 | 12 |
| 13 class MessageLoop; | 13 class MessageLoop; |
| 14 | 14 |
| 15 namespace remoting { | 15 namespace remoting { |
| 16 | 16 |
| 17 class FrameConsumer; | 17 class FrameConsumer; |
| 18 class VideoPacketFormat; | |
| 19 class VideoPacket; | 18 class VideoPacket; |
| 20 | 19 |
| 21 namespace protocol { | 20 namespace protocol { |
| 22 class SessionConfig; | 21 class SessionConfig; |
| 23 } // namespace protocol | 22 } // namespace protocol |
| 24 | 23 |
| 25 // TODO(ajwong): Re-examine this API, especially with regards to how error | 24 // TODO(ajwong): Re-examine this API, especially with regards to how error |
| 26 // conditions on each step are reported. Should they be CHECKs? Logs? Other? | 25 // conditions on each step are reported. Should they be CHECKs? Logs? Other? |
| 27 // TODO(sergeyu): Rename this class. | 26 // TODO(sergeyu): Rename this class. |
| 28 class RectangleUpdateDecoder : | 27 class RectangleUpdateDecoder : |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 // The video frame that the decoder writes to. | 87 // The video frame that the decoder writes to. |
| 89 scoped_refptr<media::VideoFrame> frame_; | 88 scoped_refptr<media::VideoFrame> frame_; |
| 90 bool frame_is_new_; | 89 bool frame_is_new_; |
| 91 | 90 |
| 92 // True if |consumer_| is currently using the frame. | 91 // True if |consumer_| is currently using the frame. |
| 93 bool frame_is_consuming_; | 92 bool frame_is_consuming_; |
| 94 }; | 93 }; |
| 95 | 94 |
| 96 } // namespace remoting | 95 } // namespace remoting |
| 97 | 96 |
| 98 #endif // REMOTING_CLIENT_RECTANGLE_UPDATE_DECODER_H | 97 #endif // REMOTING_CLIENT_RECTANGLE_UPDATE_DECODER_H_ |
| OLD | NEW |