| 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_BASE_DECODER_H_ | 5 #ifndef REMOTING_BASE_DECODER_H_ |
| 6 #define REMOTING_BASE_DECODER_H_ | 6 #define REMOTING_BASE_DECODER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/task.h" | |
| 12 #include "media/base/video_frame.h" | 11 #include "media/base/video_frame.h" |
| 13 #include "remoting/proto/video.pb.h" | 12 #include "remoting/proto/video.pb.h" |
| 14 #include "third_party/skia/include/core/SkRect.h" | 13 #include "third_party/skia/include/core/SkRect.h" |
| 15 | 14 |
| 16 namespace remoting { | 15 namespace remoting { |
| 17 | 16 |
| 18 typedef std::vector<SkIRect> RectVector; | 17 typedef std::vector<SkIRect> RectVector; |
| 19 | 18 |
| 20 // Interface for a decoder that takes a stream of bytes from the network and | 19 // Interface for a decoder that takes a stream of bytes from the network and |
| 21 // outputs frames of data. | 20 // outputs frames of data. |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 // Force decoder to output a video frame with content in |rects| using the | 73 // Force decoder to output a video frame with content in |rects| using the |
| 75 // last decoded video frame. | 74 // last decoded video frame. |
| 76 // | 75 // |
| 77 // Coordinates of rectangles supplied here are before scaling. | 76 // Coordinates of rectangles supplied here are before scaling. |
| 78 virtual void RefreshRects(const RectVector& rects) {} | 77 virtual void RefreshRects(const RectVector& rects) {} |
| 79 }; | 78 }; |
| 80 | 79 |
| 81 } // namespace remoting | 80 } // namespace remoting |
| 82 | 81 |
| 83 #endif // REMOTING_BASE_DECODER_H_ | 82 #endif // REMOTING_BASE_DECODER_H_ |
| OLD | NEW |