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

Side by Side Diff: src/pdf/SkPDFBitmap.cpp

Issue 957323003: miniz support in SkFlate / PDF (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: class comment Created 5 years, 9 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
« no previous file with comments | « src/pdf/SkDeflateWStream.cpp ('k') | tests/DeflateWStream.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « src/pdf/SkDeflateWStream.cpp ('k') | tests/DeflateWStream.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698