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

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

Issue 968683002: PDF: Switch some unit tests to higher level API. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 | « no previous file | src/pdf/SkPDFCatalog.h » ('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 "SkFlate.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"
14 #include "SkStream.h" 13 #include "SkStream.h"
15 #include "SkUnPreMultiply.h" 14 #include "SkUnPreMultiply.h"
16 15
17 //////////////////////////////////////////////////////////////////////////////// 16 ////////////////////////////////////////////////////////////////////////////////
18 17
19 static void pdf_stream_begin(SkWStream* stream) { 18 static void pdf_stream_begin(SkWStream* stream) {
20 static const char streamBegin[] = " stream\n"; 19 static const char streamBegin[] = " stream\n";
21 stream->write(streamBegin, strlen(streamBegin)); 20 stream->write(streamBegin, strlen(streamBegin));
22 } 21 }
23 22
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 return NULL; 307 return NULL;
309 } 308 }
310 // PDFAlphaBitmaps do not get directly canonicalized (they 309 // PDFAlphaBitmaps do not get directly canonicalized (they
311 // are refed by the SkPDFBitmap). 310 // are refed by the SkPDFBitmap).
312 smask = SkNEW_ARGS(PDFAlphaBitmap, (bm)); 311 smask = SkNEW_ARGS(PDFAlphaBitmap, (bm));
313 } 312 }
314 pdfBitmap = SkNEW_ARGS(SkPDFBitmap, (bm, smask)); 313 pdfBitmap = SkNEW_ARGS(SkPDFBitmap, (bm, smask));
315 canon->addBitmap(pdfBitmap); 314 canon->addBitmap(pdfBitmap);
316 return pdfBitmap; 315 return pdfBitmap;
317 } 316 }
OLDNEW
« no previous file with comments | « no previous file | src/pdf/SkPDFCatalog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698