Additional SK_API annotations needed for print preview on windows.
Review URL: http://codereview.appspot.com/4324042
git-svn-id: http://skia.googlecode.com/svn/trunk@1022 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/include/core/SkStream.h b/include/core/SkStream.h
index b02d482..3886b09 100644
--- a/include/core/SkStream.h
+++ b/include/core/SkStream.h
@@ -70,7 +70,7 @@
size_t readPackedUInt();
};
-class SkWStream : SkNoncopyable {
+class SK_API SkWStream : SkNoncopyable {
public:
virtual ~SkWStream();
@@ -269,7 +269,7 @@
size_t fBytesWritten;
};
-class SkDynamicMemoryWStream : public SkWStream {
+class SK_API SkDynamicMemoryWStream : public SkWStream {
public:
SkDynamicMemoryWStream();
virtual ~SkDynamicMemoryWStream();
diff --git a/include/pdf/SkPDFCatalog.h b/include/pdf/SkPDFCatalog.h
index f004a1d..e02ffa1 100644
--- a/include/pdf/SkPDFCatalog.h
+++ b/include/pdf/SkPDFCatalog.h
@@ -28,7 +28,7 @@
The PDF catalog manages object numbers and file offsets. It is used
to create the PDF cross reference table.
*/
-class SkPDFCatalog {
+class SK_API SkPDFCatalog {
public:
/** Create a PDF catalog.
*/
diff --git a/include/pdf/SkPDFDocument.h b/include/pdf/SkPDFDocument.h
index 54b86c4..0bc9a3c 100644
--- a/include/pdf/SkPDFDocument.h
+++ b/include/pdf/SkPDFDocument.h
@@ -34,20 +34,20 @@
public:
/** Create a PDF document.
*/
- SkPDFDocument();
- ~SkPDFDocument();
+ SK_API SkPDFDocument();
+ SK_API ~SkPDFDocument();
/** Output the PDF to the passed stream.
* @param stream The writable output stream to send the PDF to.
*/
- bool emitPDF(SkWStream* stream);
+ SK_API bool emitPDF(SkWStream* stream);
/** Append the passed pdf device to the document as a new page. Returns
* true if successful. Will fail if the document has already been emitted.
*
* @param pdfDevice The page to add to this document.
*/
- bool appendPage(const SkRefPtr<SkPDFDevice>& pdfDevice);
+ SK_API bool appendPage(const SkRefPtr<SkPDFDevice>& pdfDevice);
private:
SkPDFCatalog fCatalog;