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

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

Issue 1285913002: SkPDF: Move SkFlate into src/pdf (part 1/3) [reland] (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-12 (Wednesday) 13:09:57 EDT Created 5 years, 4 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/SkDeflate.cpp ('k') | src/pdf/SkPDFStream.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 "SkData.h" 9 #include "SkData.h"
10 #include "SkFlate.h" 10 #include "SkDeflate.h"
11 #include "SkImageGenerator.h" 11 #include "SkImageGenerator.h"
12 #include "SkJpegInfo.h" 12 #include "SkJpegInfo.h"
13 #include "SkPDFBitmap.h" 13 #include "SkPDFBitmap.h"
14 #include "SkPDFCanon.h" 14 #include "SkPDFCanon.h"
15 #include "SkPixelRef.h" 15 #include "SkPixelRef.h"
16 #include "SkStream.h" 16 #include "SkStream.h"
17 #include "SkUnPreMultiply.h" 17 #include "SkUnPreMultiply.h"
18 18
19 //////////////////////////////////////////////////////////////////////////////// 19 ////////////////////////////////////////////////////////////////////////////////
20 20
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 } 464 }
465 465
466 SkPDFObject* smask = NULL; 466 SkPDFObject* smask = NULL;
467 if (!bm.isOpaque() && !SkBitmap::ComputeIsOpaque(bm)) { 467 if (!bm.isOpaque() && !SkBitmap::ComputeIsOpaque(bm)) {
468 smask = SkNEW_ARGS(PDFAlphaBitmap, (bm)); 468 smask = SkNEW_ARGS(PDFAlphaBitmap, (bm));
469 } 469 }
470 SkPDFBitmap* pdfBitmap = SkNEW_ARGS(PDFDefaultBitmap, (bm, smask)); 470 SkPDFBitmap* pdfBitmap = SkNEW_ARGS(PDFDefaultBitmap, (bm, smask));
471 canon->addBitmap(pdfBitmap); 471 canon->addBitmap(pdfBitmap);
472 return pdfBitmap; 472 return pdfBitmap;
473 } 473 }
OLDNEW
« no previous file with comments | « src/pdf/SkDeflate.cpp ('k') | src/pdf/SkPDFStream.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698