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

Side by Side Diff: src/pdf/SkPDFGraphicState.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 unified diff | Download patch
« no previous file with comments | « src/pdf/SkPDFFormXObject.h ('k') | src/pdf/SkPDFMetadata.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2010 The Android Open Source Project 3 * Copyright 2010 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkPDFGraphicState_DEFINED 10 #ifndef SkPDFGraphicState_DEFINED
11 #define SkPDFGraphicState_DEFINED 11 #define SkPDFGraphicState_DEFINED
12 12
13 #include "SkPaint.h" 13 #include "SkPaint.h"
14 #include "SkPDFTypes.h" 14 #include "SkPDFTypes.h"
15 #include "SkChecksum.h" 15 #include "SkChecksum.h"
16 16
17 class SkPDFCanon; 17 class SkPDFCanon;
18 class SkPDFFormXObject; 18 class SkPDFFormXObject;
19 19
20 /** \class SkPDFGraphicState 20 /** \class SkPDFGraphicState
21 SkPaint objects roughly correspond to graphic state dictionaries that can 21 SkPaint objects roughly correspond to graphic state dictionaries that can
22 be installed. So that a given dictionary is only output to the pdf file 22 be installed. So that a given dictionary is only output to the pdf file
23 once, we want to canonicalize them. 23 once, we want to canonicalize them.
24 */ 24 */
25 class SkPDFGraphicState : public SkPDFObject { 25 class SkPDFGraphicState final : public SkPDFObject {
26 26
27 public: 27 public:
28 enum SkPDFSMaskMode { 28 enum SkPDFSMaskMode {
29 kAlpha_SMaskMode, 29 kAlpha_SMaskMode,
30 kLuminosity_SMaskMode 30 kLuminosity_SMaskMode
31 }; 31 };
32 32
33 // Override emitObject so that we can populate the dictionary on 33 // Override emitObject so that we can populate the dictionary on
34 // demand. 34 // demand.
35 void emitObject(SkWStream* stream, 35 void emitObject(SkWStream* stream,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 const uint8_t fStrokeCap; // SkPaint::Cap 81 const uint8_t fStrokeCap; // SkPaint::Cap
82 const uint8_t fStrokeJoin; // SkPaint::Join 82 const uint8_t fStrokeJoin; // SkPaint::Join
83 const uint8_t fMode; // SkXfermode::Mode 83 const uint8_t fMode; // SkXfermode::Mode
84 84
85 SkPDFGraphicState(const SkPaint&); 85 SkPDFGraphicState(const SkPaint&);
86 86
87 typedef SkPDFDict INHERITED; 87 typedef SkPDFDict INHERITED;
88 }; 88 };
89 89
90 #endif 90 #endif
OLDNEW
« no previous file with comments | « src/pdf/SkPDFFormXObject.h ('k') | src/pdf/SkPDFMetadata.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698