| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
| 3 * | 3 * |
| 4 * 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 |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "SkColorPriv.h" | 8 #include "SkColorPriv.h" |
| 9 #include "SkDeflateWStream.h" | 9 #include "SkFlate.h" |
| 10 #include "SkPDFBitmap.h" | 10 #include "SkPDFBitmap.h" |
| 11 #include "SkPDFCanon.h" | 11 #include "SkPDFCanon.h" |
| 12 #include "SkPDFCatalog.h" | 12 #include "SkPDFCatalog.h" |
| 13 #include "SkPDFDocument.h" | 13 #include "SkPDFDocument.h" |
| 14 #include "SkStream.h" | 14 #include "SkStream.h" |
| 15 #include "SkUnPreMultiply.h" | 15 #include "SkUnPreMultiply.h" |
| 16 | 16 |
| 17 //////////////////////////////////////////////////////////////////////////////// | 17 //////////////////////////////////////////////////////////////////////////////// |
| 18 | 18 |
| 19 static void pdf_stream_begin(SkWStream* stream) { | 19 static void pdf_stream_begin(SkWStream* stream) { |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 return NULL; | 309 return NULL; |
| 310 } | 310 } |
| 311 // PDFAlphaBitmaps do not get directly canonicalized (they | 311 // PDFAlphaBitmaps do not get directly canonicalized (they |
| 312 // are refed by the SkPDFBitmap). | 312 // are refed by the SkPDFBitmap). |
| 313 smask = SkNEW_ARGS(PDFAlphaBitmap, (bm)); | 313 smask = SkNEW_ARGS(PDFAlphaBitmap, (bm)); |
| 314 } | 314 } |
| 315 pdfBitmap = SkNEW_ARGS(SkPDFBitmap, (canon, bm, smask)); | 315 pdfBitmap = SkNEW_ARGS(SkPDFBitmap, (canon, bm, smask)); |
| 316 canon->addBitmap(pdfBitmap); | 316 canon->addBitmap(pdfBitmap); |
| 317 return pdfBitmap; | 317 return pdfBitmap; |
| 318 } | 318 } |
| OLD | NEW |