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

Unified Diff: src/pdf/SkPDFBitmap.cpp

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/SkDeflate.h ('k') | src/pdf/SkPDFDevice.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pdf/SkPDFBitmap.cpp
diff --git a/src/pdf/SkPDFBitmap.cpp b/src/pdf/SkPDFBitmap.cpp
index 159c9e73a38c049670f23de2fdda64c8bd82781b..0c53da69743c622249aa9a2cfb361c030a050862 100644
--- a/src/pdf/SkPDFBitmap.cpp
+++ b/src/pdf/SkPDFBitmap.cpp
@@ -380,7 +380,7 @@ static void emit_image_xobject(SkWStream* stream,
namespace {
// This SkPDFObject only outputs the alpha layer of the given bitmap.
-class PDFAlphaBitmap : public SkPDFObject {
+class PDFAlphaBitmap final : public SkPDFObject {
public:
PDFAlphaBitmap(const SkImage* image) : fImage(SkRef(image)) {}
~PDFAlphaBitmap() {}
@@ -399,7 +399,7 @@ private:
////////////////////////////////////////////////////////////////////////////////
namespace {
-class PDFDefaultBitmap : public SkPDFObject {
+class PDFDefaultBitmap final : public SkPDFObject {
public:
void emitObject(SkWStream* stream,
const SkPDFObjNumMap& objNumMap,
@@ -431,7 +431,7 @@ namespace {
* Grayscale JFIF Jpeg-encoded data that can be directly embedded
* into a PDF.
*/
-class PDFJpegBitmap : public SkPDFObject {
+class PDFJpegBitmap final : public SkPDFObject {
public:
SkISize fSize;
SkAutoTUnref<SkData> fData;
« no previous file with comments | « src/pdf/SkDeflate.h ('k') | src/pdf/SkPDFDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698