SkPDF: remove SK_API on no-longer-public functions.
CQ_INCLUDE_TRYBOTS=client.skia:Mac Builder-Trybot,Linux Builder-Trybot,Win Builder-Trybot
Review URL: https://codereview.chromium.org/953053002
diff --git a/src/pdf/SkPDFDevice.h b/src/pdf/SkPDFDevice.h
index 679c24b..8a88314 100644
--- a/src/pdf/SkPDFDevice.h
+++ b/src/pdf/SkPDFDevice.h
@@ -134,17 +134,17 @@
* clipped. A simple way to avoid the bug is to always draw the margin
* content last.
*/
- SK_API void setDrawingArea(DrawingArea drawingArea);
+ void setDrawingArea(DrawingArea drawingArea);
// PDF specific methods.
/** Returns the resource dictionary for this device.
*/
- SK_API SkPDFResourceDict* getResourceDict();
+ SkPDFResourceDict* getResourceDict();
/** Get the fonts used on this device.
*/
- SK_API const SkTDArray<SkPDFFont*>& getFontResources() const;
+ const SkTDArray<SkPDFFont*>& getFontResources() const;
/** Add our named destinations to the supplied dictionary.
* @param dict Dictionary to add destinations to.
@@ -155,21 +155,21 @@
/** Returns a copy of the media box for this device. The caller is required
* to unref() this when it is finished.
*/
- SK_API SkPDFArray* copyMediaBox() const;
+ SkPDFArray* copyMediaBox() const;
/** Get the annotations from this page, or NULL if there are none.
*/
- SK_API SkPDFArray* getAnnotations() const { return fAnnotations; }
+ SkPDFArray* getAnnotations() const { return fAnnotations; }
/** Returns a SkStream with the page contents. The caller is responsible
- for a deleting the returned value.
+ * for a deleting the returned value.
*/
- SK_API SkStreamAsset* content() const;
+ SkStreamAsset* content() const;
/** Writes the page contents to the stream. */
- SK_API void writeContent(SkWStream*) const;
+ void writeContent(SkWStream*) const;
- SK_API const SkMatrix& initialTransform() const {
+ const SkMatrix& initialTransform() const {
return fInitialTransform;
}
diff --git a/src/pdf/SkPDFDocument.h b/src/pdf/SkPDFDocument.h
index 6644d96..01290d0 100644
--- a/src/pdf/SkPDFDocument.h
+++ b/src/pdf/SkPDFDocument.h
@@ -29,8 +29,8 @@
*/
class SkPDFDocument {
public:
- SK_API SkPDFDocument();
- SK_API ~SkPDFDocument();
+ SkPDFDocument();
+ ~SkPDFDocument();
/** Output the PDF to the passed stream. It is an error to call this (it
* will return false and not modify stream) if no pages have been added
@@ -39,7 +39,7 @@
*
* @param stream The writable output stream to send the PDF to.
*/
- SK_API bool emitPDF(SkWStream* stream);
+ bool emitPDF(SkWStream* stream);
/** Sets the specific page to the passed PDF device. If the specified
* page is already set, this overrides it. Returns true if successful.
@@ -48,24 +48,24 @@
* @param pageNumber The position to add the passed device (1 based).
* @param pdfDevice The page to add to this document.
*/
- SK_API bool setPage(int pageNumber, SkPDFDevice* pdfDevice);
+ bool setPage(int pageNumber, SkPDFDevice* pdfDevice);
/** 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.
*/
- SK_API bool appendPage(SkPDFDevice* pdfDevice);
+ bool appendPage(SkPDFDevice* pdfDevice);
/** Get the count of unique font types used in the document.
* DEPRECATED.
*/
- SK_API void getCountOfFontTypes(
+ void getCountOfFontTypes(
int counts[SkAdvancedTypefaceMetrics::kOther_Font + 2]) const;
/** Get the count of unique font types used in the document.
*/
- SK_API void getCountOfFontTypes(
+ void getCountOfFontTypes(
int counts[SkAdvancedTypefaceMetrics::kOther_Font + 1],
int* notSubsettableCount,
int* notEmbedddableCount) const;
diff --git a/src/pdf/SkPDFFontImpl.h b/src/pdf/SkPDFFontImpl.h
index 2556822..4c3e525 100644
--- a/src/pdf/SkPDFFontImpl.h
+++ b/src/pdf/SkPDFFontImpl.h
@@ -16,7 +16,7 @@
public:
virtual ~SkPDFType0Font();
virtual bool multiByteGlyphs() const { return true; }
- SK_API virtual SkPDFFont* getFontSubset(const SkPDFGlyphSet* usage);
+ virtual SkPDFFont* getFontSubset(const SkPDFGlyphSet* usage);
#ifdef SK_DEBUG
virtual void emitObject(SkWStream* stream, SkPDFCatalog* catalog);
#endif