OLD | NEW |
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 "SkAnnotation.h" | 10 #include "SkAnnotation.h" |
11 #include "SkBitmapDevice.h" | 11 #include "SkBitmapDevice.h" |
12 #include "SkColor.h" | 12 #include "SkColor.h" |
13 #include "SkClipStack.h" | 13 #include "SkClipStack.h" |
14 #include "SkData.h" | 14 #include "SkData.h" |
15 #include "SkDraw.h" | 15 #include "SkDraw.h" |
16 #include "SkFontHost.h" | |
17 #include "SkGlyphCache.h" | 16 #include "SkGlyphCache.h" |
18 #include "SkPaint.h" | 17 #include "SkPaint.h" |
19 #include "SkPath.h" | 18 #include "SkPath.h" |
20 #include "SkPathOps.h" | 19 #include "SkPathOps.h" |
21 #include "SkPDFFont.h" | 20 #include "SkPDFFont.h" |
22 #include "SkPDFFormXObject.h" | 21 #include "SkPDFFormXObject.h" |
23 #include "SkPDFGraphicState.h" | 22 #include "SkPDFGraphicState.h" |
24 #include "SkPDFImage.h" | 23 #include "SkPDFImage.h" |
25 #include "SkPDFResourceDict.h" | 24 #include "SkPDFResourceDict.h" |
26 #include "SkPDFShader.h" | 25 #include "SkPDFShader.h" |
(...skipping 2162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2189 SkAutoTUnref<SkPDFObject> image( | 2188 SkAutoTUnref<SkPDFObject> image( |
2190 SkPDFCreateImageObject(*bitmap, subset, fEncoder)); | 2189 SkPDFCreateImageObject(*bitmap, subset, fEncoder)); |
2191 if (!image) { | 2190 if (!image) { |
2192 return; | 2191 return; |
2193 } | 2192 } |
2194 | 2193 |
2195 SkPDFUtils::DrawFormXObject(this->addXObjectResource(image.get()), | 2194 SkPDFUtils::DrawFormXObject(this->addXObjectResource(image.get()), |
2196 &content.entry()->fContent); | 2195 &content.entry()->fContent); |
2197 } | 2196 } |
2198 | 2197 |
OLD | NEW |