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_ENCODER_ROW_BASED_H_ | 5 #ifndef REMOTING_BASE_ENCODER_ROW_BASED_H_ |
6 #define REMOTING_BASE_ENCODER_ROW_BASED_H_ | 6 #define REMOTING_BASE_ENCODER_ROW_BASED_H_ |
7 | 7 |
8 #include "remoting/base/encoder.h" | 8 #include "remoting/base/encoder.h" |
9 #include "remoting/proto/video.pb.h" | 9 #include "remoting/proto/video.pb.h" |
10 #include "third_party/skia/include/core/SkRect.h" | 10 #include "third_party/skia/include/core/SkRect.h" |
11 #include "ui/gfx/size.h" | |
12 | 11 |
13 namespace remoting { | 12 namespace remoting { |
14 | 13 |
15 class Compressor; | 14 class Compressor; |
16 class UpdateStreamPacket; | 15 class UpdateStreamPacket; |
17 | 16 |
18 // EncoderRowBased implements an Encoder using zlib or verbatim | 17 // EncoderRowBased implements an Encoder using zlib or verbatim |
19 // compression. Zlib-based encoder must be created using | 18 // compression. Zlib-based encoder must be created using |
20 // CreateZlibEncoder(), verbatim encoder is created with | 19 // CreateZlibEncoder(), verbatim encoder is created with |
21 // CreateVerbatimEncoder(). | 20 // CreateVerbatimEncoder(). |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 54 |
56 // The encoding of the incoming stream. | 55 // The encoding of the incoming stream. |
57 VideoPacketFormat::Encoding encoding_; | 56 VideoPacketFormat::Encoding encoding_; |
58 | 57 |
59 scoped_ptr<Compressor> compressor_; | 58 scoped_ptr<Compressor> compressor_; |
60 | 59 |
61 scoped_refptr<CaptureData> capture_data_; | 60 scoped_refptr<CaptureData> capture_data_; |
62 scoped_ptr<DataAvailableCallback> callback_; | 61 scoped_ptr<DataAvailableCallback> callback_; |
63 | 62 |
64 // The most recent screen size. | 63 // The most recent screen size. |
65 gfx::Size screen_size_; | 64 SkISize screen_size_; |
66 | 65 |
67 int packet_size_; | 66 int packet_size_; |
68 }; | 67 }; |
69 | 68 |
70 } // namespace remoting | 69 } // namespace remoting |
71 | 70 |
72 #endif // REMOTING_BASE_ENCODER_ROW_BASED_H_ | 71 #endif // REMOTING_BASE_ENCODER_ROW_BASED_H_ |
OLD | NEW |