| OLD | NEW |
| 1 | |
| 2 /* | 1 /* |
| 3 * Copyright 2010 Google Inc. | 2 * Copyright 2010 Google Inc. |
| 4 * | 3 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 7 */ | 6 */ |
| 8 | 7 |
| 9 | 8 |
| 10 #include "SkData.h" | 9 #include "SkData.h" |
| 11 #include "SkDeflate.h" | 10 #include "SkDeflate.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 dup->getLength() <= length + strlen("/Filter_/FlateDecode_")) { | 50 dup->getLength() <= length + strlen("/Filter_/FlateDecode_")) { |
| 52 this->insertInt("Length", dup->getLength()); | 51 this->insertInt("Length", dup->getLength()); |
| 53 fCompressedData.reset(dup.release()); | 52 fCompressedData.reset(dup.release()); |
| 54 return; | 53 return; |
| 55 } | 54 } |
| 56 } | 55 } |
| 57 fCompressedData.reset(compressedData.detachAsStream()); | 56 fCompressedData.reset(compressedData.detachAsStream()); |
| 58 this->insertName("Filter", "FlateDecode"); | 57 this->insertName("Filter", "FlateDecode"); |
| 59 this->insertInt("Length", length); | 58 this->insertInt("Length", length); |
| 60 } | 59 } |
| OLD | NEW |