Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: remoting/client/rectangle_update_decoder.h

Issue 17511004: Added the desktop shape fields to VideoPacket. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback. Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/client/plugin/pepper_view.cc ('k') | remoting/client/rectangle_update_decoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « remoting/client/plugin/pepper_view.cc ('k') | remoting/client/rectangle_update_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698