OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "remoting/proto/video.pb.h" | 9 #include "remoting/proto/video.pb.h" |
11 #include "third_party/skia/include/core/SkRect.h" | 10 #include "third_party/skia/include/core/SkRect.h" |
12 #include "third_party/skia/include/core/SkRegion.h" | 11 #include "third_party/skia/include/core/SkRegion.h" |
13 #include "third_party/skia/include/core/SkSize.h" | 12 #include "third_party/skia/include/core/SkSize.h" |
14 | 13 |
15 namespace remoting { | 14 namespace remoting { |
16 | 15 |
17 // Interface for a decoder that takes a stream of bytes from the network and | 16 // Interface for a decoder that takes a stream of bytes from the network and |
18 // outputs frames of data. | 17 // outputs frames of data. |
19 // | 18 // |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 virtual void RenderFrame(const SkISize& view_size, | 66 virtual void RenderFrame(const SkISize& view_size, |
68 const SkIRect& clip_area, | 67 const SkIRect& clip_area, |
69 uint8* image_buffer, | 68 uint8* image_buffer, |
70 int image_stride, | 69 int image_stride, |
71 SkRegion* output_region) = 0; | 70 SkRegion* output_region) = 0; |
72 }; | 71 }; |
73 | 72 |
74 } // namespace remoting | 73 } // namespace remoting |
75 | 74 |
76 #endif // REMOTING_BASE_DECODER_H_ | 75 #endif // REMOTING_BASE_DECODER_H_ |
OLD | NEW |