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

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

Issue 136763009: Add VideoProcessor interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/chromoting_client.cc ('k') | remoting/client/frame_consumer_proxy.h » ('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_FRAME_CONSUMER_H_ 5 #ifndef REMOTING_CLIENT_FRAME_CONSUMER_H_
6 #define REMOTING_CLIENT_FRAME_CONSUMER_H_ 6 #define REMOTING_CLIENT_FRAME_CONSUMER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 namespace webrtc { 10 namespace webrtc {
(...skipping 19 matching lines...) Expand all
30 // relative position within the frame are specified by |clip_area|. Only 30 // relative position within the frame are specified by |clip_area|. Only
31 // pixels falling within |region| and the current clipping area are painted. 31 // pixels falling within |region| and the current clipping area are painted.
32 // The function assumes that the passed buffer was scaled to fit a window 32 // The function assumes that the passed buffer was scaled to fit a window
33 // having |view_size| dimensions. 33 // having |view_size| dimensions.
34 // 34 //
35 // N.B. Both |clip_area| and |region| are in output coordinates relative to 35 // N.B. Both |clip_area| and |region| are in output coordinates relative to
36 // the frame. 36 // the frame.
37 virtual void ApplyBuffer(const webrtc::DesktopSize& view_size, 37 virtual void ApplyBuffer(const webrtc::DesktopSize& view_size,
38 const webrtc::DesktopRect& clip_area, 38 const webrtc::DesktopRect& clip_area,
39 webrtc::DesktopFrame* buffer, 39 webrtc::DesktopFrame* buffer,
40 const webrtc::DesktopRegion& region) = 0; 40 const webrtc::DesktopRegion& region,
41 const webrtc::DesktopRegion& shape) = 0;
41 42
42 // Accepts a buffer that couldn't be used for drawing for any reason (shutdown 43 // Accepts a buffer that couldn't be used for drawing for any reason (shutdown
43 // is in progress, the view area has changed, etc.). The accepted buffer can 44 // is in progress, the view area has changed, etc.). The accepted buffer can
44 // be freed or reused for another drawing operation. 45 // be freed or reused for another drawing operation.
45 virtual void ReturnBuffer(webrtc::DesktopFrame* buffer) = 0; 46 virtual void ReturnBuffer(webrtc::DesktopFrame* buffer) = 0;
46 47
47 // Set the dimension of the entire host screen. 48 // Set the dimension of the entire host screen.
48 virtual void SetSourceSize(const webrtc::DesktopSize& source_size, 49 virtual void SetSourceSize(const webrtc::DesktopSize& source_size,
49 const webrtc::DesktopVector& dpi) = 0; 50 const webrtc::DesktopVector& dpi) = 0;
50 51
51 // Returns the preferred pixel encoding for the platform. 52 // Returns the preferred pixel encoding for the platform.
52 virtual PixelFormat GetPixelFormat() = 0; 53 virtual PixelFormat GetPixelFormat() = 0;
53 54
54 protected: 55 protected:
55 FrameConsumer() {} 56 FrameConsumer() {}
56 virtual ~FrameConsumer() {} 57 virtual ~FrameConsumer() {}
57 58
58 private: 59 private:
59 DISALLOW_COPY_AND_ASSIGN(FrameConsumer); 60 DISALLOW_COPY_AND_ASSIGN(FrameConsumer);
60 }; 61 };
61 62
62 } // namespace remoting 63 } // namespace remoting
63 64
64 #endif // REMOTING_CLIENT_FRAME_CONSUMER_H_ 65 #endif // REMOTING_CLIENT_FRAME_CONSUMER_H_
OLDNEW
« no previous file with comments | « remoting/client/chromoting_client.cc ('k') | remoting/client/frame_consumer_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698