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

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

Issue 1559043004: Add GetFrameConsumer() in VideoRenderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_video_renderer
Patch Set: Created 4 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
« no previous file with comments | « remoting/client/software_video_renderer_unittest.cc ('k') | remoting/protocol/video_renderer.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 2016 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_PROTOCOL_FRAME_CONSUMER_H_
6 #define REMOTING_CLIENT_FRAME_CONSUMER_H_ 6 #define REMOTING_PROTOCOL_FRAME_CONSUMER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 9
10 namespace webrtc { 10 namespace webrtc {
11 class DesktopFrame; 11 class DesktopFrame;
12 class DesktopRect;
13 class DesktopRegion;
14 class DesktopSize; 12 class DesktopSize;
15 class DesktopVector;
16 } // namespace webrtc 13 } // namespace webrtc
17 14
18 namespace remoting { 15 namespace remoting {
16 namespace protocol {
19 17
20 class FrameConsumer { 18 class FrameConsumer {
21 public: 19 public:
22 // List of supported pixel formats needed by various platforms. 20 // List of supported pixel formats needed by various platforms.
23 enum PixelFormat { 21 enum PixelFormat {
24 FORMAT_BGRA, // Used by the Pepper plugin. 22 FORMAT_BGRA, // Used by the Pepper plugin.
25 FORMAT_RGBA, // Used for Android's Bitmap class. 23 FORMAT_RGBA, // Used for Android's Bitmap class.
26 }; 24 };
27 25
28 virtual scoped_ptr<webrtc::DesktopFrame> AllocateFrame( 26 virtual scoped_ptr<webrtc::DesktopFrame> AllocateFrame(
29 const webrtc::DesktopSize& size) = 0; 27 const webrtc::DesktopSize& size) = 0;
30 28
31 virtual void DrawFrame(scoped_ptr<webrtc::DesktopFrame> frame, 29 virtual void DrawFrame(scoped_ptr<webrtc::DesktopFrame> frame,
32 const base::Closure& done) = 0; 30 const base::Closure& done) = 0;
33 31
34 // Returns the preferred pixel encoding for the platform. 32 // Returns the preferred pixel encoding for the platform.
35 virtual PixelFormat GetPixelFormat() = 0; 33 virtual PixelFormat GetPixelFormat() = 0;
36 34
37 protected: 35 protected:
38 FrameConsumer() {} 36 FrameConsumer() {}
39 virtual ~FrameConsumer() {} 37 virtual ~FrameConsumer() {}
40 38
41 private: 39 private:
42 DISALLOW_COPY_AND_ASSIGN(FrameConsumer); 40 DISALLOW_COPY_AND_ASSIGN(FrameConsumer);
43 }; 41 };
44 42
43 } // namespace protocol
45 } // namespace remoting 44 } // namespace remoting
46 45
47 #endif // REMOTING_CLIENT_FRAME_CONSUMER_H_ 46 #endif // REMOTING_PROTOCOL_FRAME_CONSUMER_H_
OLDNEW
« no previous file with comments | « remoting/client/software_video_renderer_unittest.cc ('k') | remoting/protocol/video_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698