| OLD | NEW |
| 1 // Copyright (c) 2010 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_FRAME_CONSUMER_H_ | 5 #ifndef REMOTING_CLIENT_FRAME_CONSUMER_H_ |
| 6 #define REMOTING_CLIENT_FRAME_CONSUMER_H_ | 6 #define REMOTING_CLIENT_FRAME_CONSUMER_H_ |
| 7 | 7 |
| 8 #include "remoting/base/decoder.h" // For UpdatedRects | 8 #include "remoting/base/decoder.h" // For UpdatedRects |
| 9 | 9 |
| 10 class Task; | 10 class Task; |
| 11 | 11 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 virtual void ReleaseFrame(media::VideoFrame* frame) = 0; | 45 virtual void ReleaseFrame(media::VideoFrame* frame) = 0; |
| 46 | 46 |
| 47 // OnPartialFrameOutput() is called every time at least one rectangle of | 47 // OnPartialFrameOutput() is called every time at least one rectangle of |
| 48 // output is produced. The |frame| is guaranteed to have valid data for every | 48 // output is produced. The |frame| is guaranteed to have valid data for every |
| 49 // region included in the |rects| list. | 49 // region included in the |rects| list. |
| 50 // | 50 // |
| 51 // Both |frame| and |rects| are guaranteed to be valid until the |done| | 51 // Both |frame| and |rects| are guaranteed to be valid until the |done| |
| 52 // callback is invoked. | 52 // callback is invoked. |
| 53 virtual void OnPartialFrameOutput(media::VideoFrame* frame, | 53 virtual void OnPartialFrameOutput(media::VideoFrame* frame, |
| 54 UpdatedRects* rects, | 54 RectVector* rects, |
| 55 Task* done) = 0; | 55 Task* done) = 0; |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 DISALLOW_COPY_AND_ASSIGN(FrameConsumer); | 58 DISALLOW_COPY_AND_ASSIGN(FrameConsumer); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace remoting | 61 } // namespace remoting |
| 62 | 62 |
| 63 #endif // REMOTING_CLIENT_FRAME_CONSUMER_H_ | 63 #endif // REMOTING_CLIENT_FRAME_CONSUMER_H_ |
| OLD | NEW |