| OLD | NEW |
| 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 Loading... |
| 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() {} |
| OLD | NEW |