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

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

Issue 1049753002: SkPDF: Factor SkPDFCatalog into SkPDFObjNumMap and SkPDFSubstituteMap (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: full Created 5 years, 8 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
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2010 The Android Open Source Project 3 * Copyright 2010 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "SkPDFFormXObject.h" 10 #include "SkPDFFormXObject.h"
11 11
12 #include "SkMatrix.h" 12 #include "SkMatrix.h"
13 #include "SkPDFCatalog.h"
14 #include "SkPDFDevice.h" 13 #include "SkPDFDevice.h"
15 #include "SkPDFResourceDict.h" 14 #include "SkPDFResourceDict.h"
16 #include "SkPDFUtils.h" 15 #include "SkPDFUtils.h"
17 #include "SkStream.h" 16 #include "SkStream.h"
18 #include "SkTypes.h" 17 #include "SkTypes.h"
19 18
20 SkPDFFormXObject::SkPDFFormXObject(SkPDFDevice* device) { 19 SkPDFFormXObject::SkPDFFormXObject(SkPDFDevice* device) {
21 // We don't want to keep around device because we'd have two copies 20 // We don't want to keep around device because we'd have two copies
22 // of content, so reference or copy everything we need (content and 21 // of content, so reference or copy everything we need (content and
23 // resources). 22 // resources).
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 group->insertName("S", "Transparency"); 70 group->insertName("S", "Transparency");
72 71
73 if (colorSpace != NULL) { 72 if (colorSpace != NULL) {
74 group->insertName("CS", colorSpace); 73 group->insertName("CS", colorSpace);
75 } 74 }
76 group->insert("I", new SkPDFBool(true))->unref(); // Isolated. 75 group->insert("I", new SkPDFBool(true))->unref(); // Isolated.
77 insert("Group", group.get()); 76 insert("Group", group.get());
78 } 77 }
79 78
80 SkPDFFormXObject::~SkPDFFormXObject() {} 79 SkPDFFormXObject::~SkPDFFormXObject() {}
OLDNEW
« no previous file with comments | « src/pdf/SkPDFFormXObject.h ('k') | src/pdf/SkPDFGraphicState.h » ('j') | src/pdf/SkPDFStream.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698