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

Side by Side Diff: remoting/base/decoder_row_based.h

Issue 9146030: Revert 118790 - Compile error due to missing operator== on SkRegion (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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/base/decoder.h ('k') | remoting/base/decoder_row_based.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) 2011 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_BASE_DECODER_ROW_BASED_H_ 5 #ifndef REMOTING_BASE_DECODER_ROW_BASED_H_
6 #define REMOTING_BASE_DECODER_ROW_BASED_H_ 6 #define REMOTING_BASE_DECODER_ROW_BASED_H_
7 7
8 #include "remoting/base/decoder.h" 8 #include "remoting/base/decoder.h"
9 9
10 namespace remoting { 10 namespace remoting {
11 11
12 class Decompressor; 12 class Decompressor;
13 13
14 class DecoderRowBased : public Decoder { 14 class DecoderRowBased : public Decoder {
15 public: 15 public:
16 virtual ~DecoderRowBased(); 16 virtual ~DecoderRowBased();
17 17
18 static DecoderRowBased* CreateZlibDecoder(); 18 static DecoderRowBased* CreateZlibDecoder();
19 static DecoderRowBased* CreateVerbatimDecoder(); 19 static DecoderRowBased* CreateVerbatimDecoder();
20 20
21 // Decoder implementation. 21 // Decoder implementation.
22 virtual bool IsReadyForData() OVERRIDE; 22 virtual bool IsReadyForData() OVERRIDE;
23 virtual void Initialize(scoped_refptr<media::VideoFrame> frame) OVERRIDE; 23 virtual void Initialize(scoped_refptr<media::VideoFrame> frame) OVERRIDE;
24 virtual DecodeResult DecodePacket(const VideoPacket* packet) OVERRIDE; 24 virtual DecodeResult DecodePacket(const VideoPacket* packet) OVERRIDE;
25 virtual void GetUpdatedRegion(SkRegion* region) OVERRIDE; 25 virtual void GetUpdatedRects(RectVector* rects) OVERRIDE;
26 virtual void Reset() OVERRIDE; 26 virtual void Reset() OVERRIDE;
27 virtual VideoPacketFormat::Encoding Encoding() OVERRIDE; 27 virtual VideoPacketFormat::Encoding Encoding() OVERRIDE;
28 28
29 private: 29 private:
30 enum State { 30 enum State {
31 kUninitialized, 31 kUninitialized,
32 kReady, 32 kReady,
33 kProcessing, 33 kProcessing,
34 kPartitionDone, 34 kPartitionDone,
35 kDone, 35 kDone,
(...skipping 20 matching lines...) Expand all
56 56
57 // The encoding of the incoming stream. 57 // The encoding of the incoming stream.
58 VideoPacketFormat::Encoding encoding_; 58 VideoPacketFormat::Encoding encoding_;
59 59
60 // The position in the row that we are updating. 60 // The position in the row that we are updating.
61 int row_pos_; 61 int row_pos_;
62 62
63 // The current row in the rect that we are updaing. 63 // The current row in the rect that we are updaing.
64 int row_y_; 64 int row_y_;
65 65
66 SkRegion updated_region_; 66 RectVector updated_rects_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(DecoderRowBased); 68 DISALLOW_COPY_AND_ASSIGN(DecoderRowBased);
69 }; 69 };
70 70
71 } // namespace remoting 71 } // namespace remoting
72 72
73 #endif // REMOTING_BASE_DECODER_ROW_BASED_H_ 73 #endif // REMOTING_BASE_DECODER_ROW_BASED_H_
OLDNEW
« no previous file with comments | « remoting/base/decoder.h ('k') | remoting/base/decoder_row_based.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698