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

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

Issue 2110033002: Remove unnecessary includes in src/pdf/ (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: fix order Created 4 years, 5 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/SkPDFDevice.h ('k') | src/pdf/SkPDFDocument.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 2011 Google Inc. 2 * Copyright 2011 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 "SkPDFDevice.h" 8 #include "SkPDFDevice.h"
9 9
10 #include "SkAnnotationKeys.h" 10 #include "SkAnnotationKeys.h"
11 #include "SkBitmapKey.h"
11 #include "SkColor.h" 12 #include "SkColor.h"
12 #include "SkColorFilter.h" 13 #include "SkColorFilter.h"
13 #include "SkClipStack.h"
14 #include "SkDraw.h" 14 #include "SkDraw.h"
15 #include "SkGlyphCache.h" 15 #include "SkGlyphCache.h"
16 #include "SkPaint.h"
17 #include "SkPath.h" 16 #include "SkPath.h"
18 #include "SkPathEffect.h" 17 #include "SkPathEffect.h"
19 #include "SkPathOps.h" 18 #include "SkPathOps.h"
20 #include "SkPDFBitmap.h" 19 #include "SkPDFBitmap.h"
21 #include "SkPDFCanon.h" 20 #include "SkPDFCanon.h"
22 #include "SkPDFDocument.h" 21 #include "SkPDFDocument.h"
23 #include "SkPDFFont.h" 22 #include "SkPDFFont.h"
24 #include "SkPDFFormXObject.h" 23 #include "SkPDFFormXObject.h"
25 #include "SkPDFGraphicState.h" 24 #include "SkPDFGraphicState.h"
26 #include "SkPDFResourceDict.h" 25 #include "SkPDFResourceDict.h"
27 #include "SkPDFShader.h" 26 #include "SkPDFShader.h"
28 #include "SkPDFStream.h" 27 #include "SkPDFStream.h"
29 #include "SkPDFTypes.h" 28 #include "SkPDFTypes.h"
30 #include "SkPDFUtils.h" 29 #include "SkPDFUtils.h"
31 #include "SkRasterClip.h" 30 #include "SkRasterClip.h"
32 #include "SkRect.h"
33 #include "SkRRect.h" 31 #include "SkRRect.h"
34 #include "SkString.h" 32 #include "SkString.h"
35 #include "SkSurface.h" 33 #include "SkSurface.h"
36 #include "SkTextFormatParams.h" 34 #include "SkTextFormatParams.h"
37 #include "SkTemplates.h" 35 #include "SkTemplates.h"
38 #include "SkTypefacePriv.h" 36 #include "SkTypefacePriv.h"
39 #include "SkXfermodeInterpretation.h" 37 #include "SkXfermodeInterpretation.h"
40 38
41 #define DPI_FOR_RASTER_SCALE_ONE 72 39 #define DPI_FOR_RASTER_SCALE_ONE 72
42 40
(...skipping 2095 matching lines...) Expand 10 before | Expand all | Expand 10 after
2138 if (!pdfimage) { 2136 if (!pdfimage) {
2139 return; 2137 return;
2140 } 2138 }
2141 fDocument->serialize(pdfimage); // serialize images early. 2139 fDocument->serialize(pdfimage); // serialize images early.
2142 fDocument->canon()->addPDFBitmap(key, pdfimage); 2140 fDocument->canon()->addPDFBitmap(key, pdfimage);
2143 } 2141 }
2144 // TODO(halcanary): addXObjectResource() should take a sk_sp<SkPDFObject> 2142 // TODO(halcanary): addXObjectResource() should take a sk_sp<SkPDFObject>
2145 SkPDFUtils::DrawFormXObject(this->addXObjectResource(pdfimage.get()), 2143 SkPDFUtils::DrawFormXObject(this->addXObjectResource(pdfimage.get()),
2146 &content.entry()->fContent); 2144 &content.entry()->fContent);
2147 } 2145 }
OLDNEW
« no previous file with comments | « src/pdf/SkPDFDevice.h ('k') | src/pdf/SkPDFDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698