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

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

Issue 3305001: Move decoder into separate thread, clean up API layering, and redo update protocl (Closed)
Patch Set: Fix compile error. Created 10 years, 2 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "remoting/base/decoder.h" // For UpdatedRects
9
10 class Task;
11
8 namespace remoting { 12 namespace remoting {
9 13
10 class FrameConsumer { 14 class FrameConsumer {
11 public: 15 public:
12 FrameConsumer() {} 16 FrameConsumer() {}
13 virtual ~FrameConsumer() {} 17 virtual ~FrameConsumer() {}
14 18
15 // Request a frame be allocated from the FrameConsumer. 19 // Request a frame be allocated from the FrameConsumer.
16 // 20 //
17 // If a frame cannot be allocated to fit the format, and height/width 21 // If a frame cannot be allocated to fit the format, and height/width
(...skipping 16 matching lines...) Expand all
34 size_t width, 38 size_t width,
35 size_t height, 39 size_t height,
36 base::TimeDelta timestamp, 40 base::TimeDelta timestamp,
37 base::TimeDelta duration, 41 base::TimeDelta duration,
38 scoped_refptr<media::VideoFrame>* frame_out, 42 scoped_refptr<media::VideoFrame>* frame_out,
39 Task* done) = 0; 43 Task* done) = 0;
40 44
41 virtual void ReleaseFrame(media::VideoFrame* frame) = 0; 45 virtual void ReleaseFrame(media::VideoFrame* frame) = 0;
42 46
43 // OnPartialFrameOutput() is called every time at least one rectangle of 47 // OnPartialFrameOutput() is called every time at least one rectangle of
44 // output is produced. The |frame| is guaranteed to have valid data for 48 // output is produced. The |frame| is guaranteed to have valid data for every
45 // every region included in the |rects| list. 49 // region included in the |rects| list.
46 // 50 //
47 // Both |frame| and |rects| are guaranteed to be valid until the |done| 51 // Both |frame| and |rects| are guaranteed to be valid until the |done|
48 // callback is invoked. 52 // callback is invoked.
49 virtual void OnPartialFrameOutput(media::VideoFrame* frame, 53 virtual void OnPartialFrameOutput(media::VideoFrame* frame,
50 UpdatedRects* rects, 54 UpdatedRects* rects,
51 Task* done) = 0; 55 Task* done) = 0;
52 56
53 private: 57 private:
54 DISALLOW_COPY_AND_ASSIGN(FrameConsumer); 58 DISALLOW_COPY_AND_ASSIGN(FrameConsumer);
55 }; 59 };
56 60
57 } // namespace remoting 61 } // namespace remoting
58 62
59 #endif // REMOTING_CLIENT_FRAME_CONSUMER_H_ 63 #endif // REMOTING_CLIENT_FRAME_CONSUMER_H_
OLDNEW
« no previous file with comments | « remoting/client/chromoting_view_unittest.cc ('k') | remoting/client/plugin/chromoting_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698