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

Side by Side Diff: remoting/client/rectangle_update_decoder.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
« 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) 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_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 "base/scoped_ptr.h" 8 #include "base/scoped_ptr.h"
9 #include "base/task.h" 9 #include "base/task.h"
10 #include "media/base/video_frame.h" 10 #include "media/base/video_frame.h"
11 #include "remoting/base/decoder.h" // For UpdatedRects. 11 #include "remoting/base/decoder.h" // For UpdatedRects
12 12
13 class MessageLoop; 13 class MessageLoop;
14 14
15 namespace remoting { 15 namespace remoting {
16 16
17 class Decoder;
17 class FrameConsumer; 18 class FrameConsumer;
18 class RectangleFormat; 19 class RectangleFormat;
19 class RectangleUpdatePacket; 20 class RectangleUpdatePacket;
20 21
21 // TODO(ajwong): Re-examine this API, especially with regards to how error 22 // TODO(ajwong): Re-examine this API, especially with regards to how error
22 // conditions on each step are reported. Should they be CHECKs? Logs? Other? 23 // conditions on each step are reported. Should they be CHECKs? Logs? Other?
23 class RectangleUpdateDecoder { 24 class RectangleUpdateDecoder {
24 public: 25 public:
25 RectangleUpdateDecoder(MessageLoop* message_loop, 26 RectangleUpdateDecoder(MessageLoop* message_loop,
26 FrameConsumer* consumer); 27 FrameConsumer* consumer);
(...skipping 24 matching lines...) Expand all
51 52
52 // Framebuffer for the decoder. 53 // Framebuffer for the decoder.
53 scoped_refptr<media::VideoFrame> frame_; 54 scoped_refptr<media::VideoFrame> frame_;
54 }; 55 };
55 56
56 } // namespace remoting 57 } // namespace remoting
57 58
58 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::RectangleUpdateDecoder); 59 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::RectangleUpdateDecoder);
59 60
60 #endif // REMOTING_CLIENT_RECTANGLE_UPDATE_DECODER_H 61 #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