Index: src/pdf/SkPDFTypes.h |
diff --git a/src/pdf/SkPDFTypes.h b/src/pdf/SkPDFTypes.h |
index ec527fc932cfd33737942f50b479ba15085ce4da..0f029980b17faac001b6ad85a277310d3018bcf4 100644 |
--- a/src/pdf/SkPDFTypes.h |
+++ b/src/pdf/SkPDFTypes.h |
@@ -346,6 +346,12 @@ public: |
*/ |
bool addObject(SkPDFObject* obj); |
+ /** Add the passed object to the catalog, as well as all its dependencies. |
+ * @param obj The object to add. If nullptr, this is a noop. |
+ * @param subs Will be passed to obj->addResources(). |
+ */ |
+ void addObjectRecursively(SkPDFObject* obj, const SkPDFSubstituteMap& subs); |
+ |
/** Get the object number for the passed object. |
* @param obj The object of interest. |
*/ |