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

Side by Side Diff: runtime/bin/filter_patch.dart

Issue 130513003: [ZLIB] Add support for windowBits, memLevel, raw (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: integrate feedback Created 6 years, 10 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 | « runtime/bin/filter.cc ('k') | runtime/bin/io_natives.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 5
6 class _FilterImpl extends NativeFieldWrapperClass1 implements _Filter { 6 class _FilterImpl extends NativeFieldWrapperClass1 implements _Filter {
7 void process(List<int> data, int start, int end) native "Filter_Process"; 7 void process(List<int> data, int start, int end) native "Filter_Process";
8 8
9 List<int> processed({bool flush: true, bool end: false}) 9 List<int> processed({bool flush: true, bool end: false})
10 native "Filter_Processed"; 10 native "Filter_Processed";
11 11
12 void end() native "Filter_End"; 12 void end() native "Filter_End";
13 } 13 }
14 14
15 class _ZLibInflateFilter extends _FilterImpl { 15 class _ZLibInflateFilter extends _FilterImpl {
16 _ZLibInflateFilter() { 16 _ZLibInflateFilter(int windowBits, List<int> dictionary, bool raw) {
17 _init(); 17 _init(windowBits, dictionary, raw);
18 } 18 }
19 void _init() native "Filter_CreateZLibInflate"; 19 void _init(int windowBits, List<int> dictionary, bool raw)
20 native "Filter_CreateZLibInflate";
20 } 21 }
21 22
22 class _ZLibDeflateFilter extends _FilterImpl { 23 class _ZLibDeflateFilter extends _FilterImpl {
23 _ZLibDeflateFilter(bool gzip, int level) { 24 _ZLibDeflateFilter(bool gzip, int level, int windowBits, int memLevel,
24 _init(gzip, level); 25 int strategy, List<int> dictionary, bool raw) {
26 _init(gzip, level, windowBits, memLevel, strategy, dictionary, raw);
25 } 27 }
26 void _init(bool gzip, int level) native "Filter_CreateZLibDeflate"; 28 void _init(bool gzip, int level, int windowBits, int memLevel,
29 int strategy, List<int> dictionary, bool raw)
30 native "Filter_CreateZLibDeflate";
27 } 31 }
28 32
29 patch class _Filter { 33 patch class _Filter {
30 /* patch */ static _Filter newZLibDeflateFilter(bool gzip, int level) 34 /* patch */ static _Filter newZLibDeflateFilter(bool gzip, int level,
31 => new _ZLibDeflateFilter(gzip, level); 35 int windowBits, int memLevel,
32 /* patch */ static _Filter newZLibInflateFilter() => new _ZLibInflateFilter(); 36 int strategy,
37 List<int> dictionary,
38 bool raw) =>
39 new _ZLibDeflateFilter(gzip, level, windowBits, memLevel, strategy,
40 dictionary, raw);
41 /* patch */ static _Filter newZLibInflateFilter(int windowBits,
42 List<int> dictionary,
43 bool raw) =>
44 new _ZLibInflateFilter(windowBits, dictionary, raw);
33 } 45 }
34
OLDNEW
« no previous file with comments | « runtime/bin/filter.cc ('k') | runtime/bin/io_natives.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698