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_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 <list> | 8 #include <list> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // Initializes decoder with the information from the protocol config. | 53 // Initializes decoder with the information from the protocol config. |
54 void Initialize(const protocol::SessionConfig& config); | 54 void Initialize(const protocol::SessionConfig& config); |
55 | 55 |
56 // FrameProducer implementation. These methods may be called before we are | 56 // FrameProducer implementation. These methods may be called before we are |
57 // Initialize()d, or we know the source screen size. | 57 // Initialize()d, or we know the source screen size. |
58 virtual void DrawBuffer(pp::ImageData* buffer) OVERRIDE; | 58 virtual void DrawBuffer(pp::ImageData* buffer) OVERRIDE; |
59 virtual void InvalidateRegion(const SkRegion& region) OVERRIDE; | 59 virtual void InvalidateRegion(const SkRegion& region) OVERRIDE; |
60 virtual void RequestReturnBuffers(const base::Closure& done) OVERRIDE; | 60 virtual void RequestReturnBuffers(const base::Closure& done) OVERRIDE; |
61 virtual void SetOutputSizeAndClip(const SkISize& view_size, | 61 virtual void SetOutputSizeAndClip(const SkISize& view_size, |
62 const SkIRect& clip_area) OVERRIDE; | 62 const SkIRect& clip_area) OVERRIDE; |
| 63 virtual const SkRegion* GetBufferShape() OVERRIDE; |
63 | 64 |
64 // VideoStub implementation. | 65 // VideoStub implementation. |
65 virtual void ProcessVideoPacket(scoped_ptr<VideoPacket> packet, | 66 virtual void ProcessVideoPacket(scoped_ptr<VideoPacket> packet, |
66 const base::Closure& done) OVERRIDE; | 67 const base::Closure& done) OVERRIDE; |
67 | 68 |
68 // Return the stats recorded by this client. | 69 // Return the stats recorded by this client. |
69 ChromotingStats* GetStats(); | 70 ChromotingStats* GetStats(); |
70 | 71 |
71 private: | 72 private: |
72 friend class base::RefCountedThreadSafe<RectangleUpdateDecoder>; | 73 friend class base::RefCountedThreadSafe<RectangleUpdateDecoder>; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 113 |
113 ChromotingStats stats_; | 114 ChromotingStats stats_; |
114 | 115 |
115 // Keep track of the most recent sequence number bounced back from the host. | 116 // Keep track of the most recent sequence number bounced back from the host. |
116 int64 latest_sequence_number_; | 117 int64 latest_sequence_number_; |
117 }; | 118 }; |
118 | 119 |
119 } // namespace remoting | 120 } // namespace remoting |
120 | 121 |
121 #endif // REMOTING_CLIENT_RECTANGLE_UPDATE_DECODER_H_ | 122 #endif // REMOTING_CLIENT_RECTANGLE_UPDATE_DECODER_H_ |
OLD | NEW |