diff options
author | 2013-07-23 21:49:29 +0000 | |
---|---|---|
committer | 2013-07-23 21:49:29 +0000 | |
commit | 47401354074549d8591da7fa115241766d3ee3d2 (patch) | |
tree | ff20e362854570da72e06bc274ffe9a840534b41 /src/pdf/SkPDFFormXObject.cpp | |
parent | 1f080163ac58e0a5a621a720de5fc63e7b736765 (diff) |
Fix Clang build on SkPDFResourceDict (CL 18977002)
R=edisonn@google.com, vandebo@chromium.org
Author: richardlin@chromium.org
Review URL: https://chromiumcodereview.appspot.com/19954011
git-svn-id: http://skia.googlecode.com/svn/trunk@10295 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/pdf/SkPDFFormXObject.cpp')
-rw-r--r-- | src/pdf/SkPDFFormXObject.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pdf/SkPDFFormXObject.cpp b/src/pdf/SkPDFFormXObject.cpp index 884e6db2e4..6958e276ed 100644 --- a/src/pdf/SkPDFFormXObject.cpp +++ b/src/pdf/SkPDFFormXObject.cpp @@ -12,6 +12,7 @@ #include "SkMatrix.h" #include "SkPDFCatalog.h" #include "SkPDFDevice.h" +#include "SkPDFResourceDict.h" #include "SkPDFUtils.h" #include "SkStream.h" #include "SkTypes.h" @@ -21,7 +22,8 @@ SkPDFFormXObject::SkPDFFormXObject(SkPDFDevice* device) { // of content, so reference or copy everything we need (content and // resources). SkTSet<SkPDFObject*> emptySet; - device->getResources(emptySet, &fResources, false); + SkPDFResourceDict* resourceDict = device->getResourceDict(); + resourceDict->getReferencedResources(emptySet, &fResources, false); SkAutoTUnref<SkStream> content(device->content()); setData(content.get()); @@ -29,7 +31,7 @@ SkPDFFormXObject::SkPDFFormXObject(SkPDFDevice* device) { insertName("Type", "XObject"); insertName("Subtype", "Form"); SkSafeUnref(this->insert("BBox", device->copyMediaBox())); - insert("Resources", device->getResourceDict()); + insert("Resources", resourceDict); // We invert the initial transform and apply that to the xobject so that // it doesn't get applied twice. We can't just undo it because it's |