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

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

Issue 3814013: FBTF: Monster ctor patch after changing heuristics in clang plugin. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: More add file fail 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 | Annotate | Revision Log
« no previous file with comments | « net/url_request/view_cache_helper.cc ('k') | remoting/base/encoder_zlib.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_BASE_ENCODER_ZLIB_H_ 5 #ifndef REMOTING_BASE_ENCODER_ZLIB_H_
6 #define REMOTING_BASE_ENCODER_ZLIB_H_ 6 #define REMOTING_BASE_ENCODER_ZLIB_H_
7 7
8 #include "remoting/base/encoder.h" 8 #include "remoting/base/encoder.h"
9 9
10 #include "gfx/rect.h" 10 #include "gfx/rect.h"
11 11
12 namespace remoting { 12 namespace remoting {
13 13
14 class CompressorZlib; 14 class CompressorZlib;
15 class UpdateStreamPacket; 15 class UpdateStreamPacket;
16 16
17 // EncoderZlib implements an Encoder using Zlib for compression. 17 // EncoderZlib implements an Encoder using Zlib for compression.
18 class EncoderZlib : public Encoder { 18 class EncoderZlib : public Encoder {
19 public: 19 public:
20 EncoderZlib(); 20 EncoderZlib();
21 EncoderZlib(int packet_size); 21 EncoderZlib(int packet_size);
22 22
23 virtual ~EncoderZlib() {} 23 virtual ~EncoderZlib();
24 24
25 virtual void Encode(scoped_refptr<CaptureData> capture_data, 25 virtual void Encode(scoped_refptr<CaptureData> capture_data,
26 bool key_frame, 26 bool key_frame,
27 DataAvailableCallback* data_available_callback); 27 DataAvailableCallback* data_available_callback);
28 28
29 private: 29 private:
30 // Encode a single dirty rect using compressor. 30 // Encode a single dirty rect using compressor.
31 void EncodeRect(CompressorZlib* compressor, const gfx::Rect& rect, 31 void EncodeRect(CompressorZlib* compressor, const gfx::Rect& rect,
32 size_t rect_index); 32 size_t rect_index);
33 33
(...skipping 10 matching lines...) Expand all
44 44
45 scoped_refptr<CaptureData> capture_data_; 45 scoped_refptr<CaptureData> capture_data_;
46 scoped_ptr<DataAvailableCallback> callback_; 46 scoped_ptr<DataAvailableCallback> callback_;
47 //size_t current_rect_; 47 //size_t current_rect_;
48 int packet_size_; 48 int packet_size_;
49 }; 49 };
50 50
51 } // namespace remoting 51 } // namespace remoting
52 52
53 #endif // REMOTING_BASE_ENCODER_ZLIB_H_ 53 #endif // REMOTING_BASE_ENCODER_ZLIB_H_
OLDNEW
« no previous file with comments | « net/url_request/view_cache_helper.cc ('k') | remoting/base/encoder_zlib.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698