aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf/SkPDFImage.h
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2015-02-20 07:21:05 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-02-20 07:21:05 -0800
commit792c80f5a7b66e75d42664ccb298f31962c6654c (patch)
treefc98395a0a8b9860677b9465ca2c5b662f89ee78 /src/pdf/SkPDFImage.h
parentd08ea5fdae990ee7829e3755abddfab9740eab99 (diff)
PDF: Now threadsafe!
The PDF canvas is now just as threadsafe as any other Skia canvas. DM updated to thread PDF tests. SkDocument_PDF now owns SkPDFCanon, and pointers to that canon are passed around to all classes that need access to the canon. BUG=skia:2683 Review URL: https://codereview.chromium.org/944643002
Diffstat (limited to 'src/pdf/SkPDFImage.h')
-rw-r--r--src/pdf/SkPDFImage.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pdf/SkPDFImage.h b/src/pdf/SkPDFImage.h
index 8e36542f0b..64be971bfc 100644
--- a/src/pdf/SkPDFImage.h
+++ b/src/pdf/SkPDFImage.h
@@ -24,7 +24,9 @@ struct SkIRect;
/**
* Return the mose efficient availible encoding of the given bitmap.
*/
-SkPDFObject* SkPDFCreateImageObject(const SkBitmap&, const SkIRect& subset);
+SkPDFObject* SkPDFCreateImageObject(SkPDFCanon* canon,
+ const SkBitmap&,
+ const SkIRect& subset);
/** \class SkPDFImage