Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(481)

Unified Diff: src/pdf/SkPDFFontImpl.h

Issue 1461403002: SkPDF: add `final` keyword to leaf classes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pdf/SkPDFDevice.h ('k') | src/pdf/SkPDFFormXObject.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pdf/SkPDFFontImpl.h
diff --git a/src/pdf/SkPDFFontImpl.h b/src/pdf/SkPDFFontImpl.h
index f6684489b14c20522bda8d8b1da92960bd922fe0..71f78bd4a67635969b69d1cc5fad646c3684cccb 100644
--- a/src/pdf/SkPDFFontImpl.h
+++ b/src/pdf/SkPDFFontImpl.h
@@ -12,7 +12,7 @@
#include "SkPDFFont.h"
-class SkPDFType0Font : public SkPDFFont {
+class SkPDFType0Font final : public SkPDFFont {
public:
virtual ~SkPDFType0Font();
bool multiByteGlyphs() const override { return true; }
@@ -36,7 +36,7 @@ private:
bool populate(const SkPDFGlyphSet* subset);
};
-class SkPDFCIDFont : public SkPDFFont {
+class SkPDFCIDFont final : public SkPDFFont {
public:
virtual ~SkPDFCIDFont();
virtual bool multiByteGlyphs() const { return true; }
@@ -53,7 +53,7 @@ private:
const SkTDArray<uint32_t>* subset);
};
-class SkPDFType1Font : public SkPDFFont {
+class SkPDFType1Font final : public SkPDFFont {
public:
virtual ~SkPDFType1Font();
virtual bool multiByteGlyphs() const { return false; }
@@ -72,7 +72,7 @@ private:
const SkAdvancedTypefaceMetrics::WidthRange* widthRangeEntry);
};
-class SkPDFType3Font : public SkPDFFont {
+class SkPDFType3Font final : public SkPDFFont {
public:
virtual ~SkPDFType3Font();
virtual bool multiByteGlyphs() const { return false; }
« no previous file with comments | « src/pdf/SkPDFDevice.h ('k') | src/pdf/SkPDFFormXObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698