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

Side by Side Diff: src/pdf/SkPDFFormXObject.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/SkPDFFontImpl.h ('k') | src/pdf/SkPDFGraphicState.h » ('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 SkPDFFormXObject_DEFINED 10 #ifndef SkPDFFormXObject_DEFINED
(...skipping 12 matching lines...) Expand all
23 /** \class SkPDFFormXObject 23 /** \class SkPDFFormXObject
24 24
25 A form XObject; a self contained description of graphics objects. A form 25 A form XObject; a self contained description of graphics objects. A form
26 XObject is basically a page object with slightly different syntax, that 26 XObject is basically a page object with slightly different syntax, that
27 can be drawn onto a page. 27 can be drawn onto a page.
28 */ 28 */
29 29
30 // The caller could keep track of the form XObjects it creates and 30 // The caller could keep track of the form XObjects it creates and
31 // canonicalize them, but the Skia API doesn't provide enough context to 31 // canonicalize them, but the Skia API doesn't provide enough context to
32 // automatically do it (trivially). 32 // automatically do it (trivially).
33 class SkPDFFormXObject : public SkPDFStream { 33 class SkPDFFormXObject final : public SkPDFStream {
34 public: 34 public:
35 /** Create a PDF form XObject. Entries for the dictionary entries are 35 /** Create a PDF form XObject. Entries for the dictionary entries are
36 * automatically added. 36 * automatically added.
37 * @param device The set of graphical elements on this form. 37 * @param device The set of graphical elements on this form.
38 */ 38 */
39 explicit SkPDFFormXObject(SkPDFDevice* device); 39 explicit SkPDFFormXObject(SkPDFDevice* device);
40 /** 40 /**
41 * Create a PDF form XObject from a raw content stream and associated 41 * Create a PDF form XObject from a raw content stream and associated
42 * resources. 42 * resources.
43 */ 43 */
44 explicit SkPDFFormXObject(SkStream* content, 44 explicit SkPDFFormXObject(SkStream* content,
45 SkRect bbox, 45 SkRect bbox,
46 SkPDFDict* resourceDict); 46 SkPDFDict* resourceDict);
47 virtual ~SkPDFFormXObject(); 47 virtual ~SkPDFFormXObject();
48 48
49 private: 49 private:
50 void init(const char* colorSpace, 50 void init(const char* colorSpace,
51 SkPDFDict* resourceDict, SkPDFArray* bbox); 51 SkPDFDict* resourceDict, SkPDFArray* bbox);
52 }; 52 };
53 53
54 #endif 54 #endif
OLDNEW
« no previous file with comments | « src/pdf/SkPDFFontImpl.h ('k') | src/pdf/SkPDFGraphicState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698