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

Side by Side Diff: src/pdf/SkPDFDevice.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/SkPDFBitmap.cpp ('k') | src/pdf/SkPDFFontImpl.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 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkPDFDevice_DEFINED 8 #ifndef SkPDFDevice_DEFINED
9 #define SkPDFDevice_DEFINED 9 #define SkPDFDevice_DEFINED
10 10
(...skipping 26 matching lines...) Expand all
37 // Private classes. 37 // Private classes.
38 struct ContentEntry; 38 struct ContentEntry;
39 struct GraphicStateEntry; 39 struct GraphicStateEntry;
40 struct NamedDestination; 40 struct NamedDestination;
41 struct RectWithData; 41 struct RectWithData;
42 42
43 /** \class SkPDFDevice 43 /** \class SkPDFDevice
44 44
45 The drawing context for the PDF backend. 45 The drawing context for the PDF backend.
46 */ 46 */
47 class SkPDFDevice : public SkBaseDevice { 47 class SkPDFDevice final : public SkBaseDevice {
48 public: 48 public:
49 /** Create a PDF drawing context. SkPDFDevice applies a 49 /** Create a PDF drawing context. SkPDFDevice applies a
50 * scale-and-translate transform to move the origin from the 50 * scale-and-translate transform to move the origin from the
51 * bottom left (PDF default) to the top left (Skia default). 51 * bottom left (PDF default) to the top left (Skia default).
52 * @param pageSize Page size in point units. 52 * @param pageSize Page size in point units.
53 * 1 point == 127/360 mm == 1/72 inch 53 * 1 point == 127/360 mm == 1/72 inch
54 * @param rasterDpi the DPI at which features without native PDF 54 * @param rasterDpi the DPI at which features without native PDF
55 * support will be rasterized (e.g. draw image with 55 * support will be rasterized (e.g. draw image with
56 * perspective, draw text with perspective, ...). A 56 * perspective, draw text with perspective, ...). A
57 * larger DPI would create a PDF that reflects the 57 * larger DPI would create a PDF that reflects the
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 310
311 typedef SkBaseDevice INHERITED; 311 typedef SkBaseDevice INHERITED;
312 312
313 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to create 313 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to create
314 // an SkPDFDevice 314 // an SkPDFDevice
315 //friend class SkDocument_PDF; 315 //friend class SkDocument_PDF;
316 //friend class SkPDFImageShader; 316 //friend class SkPDFImageShader;
317 }; 317 };
318 318
319 #endif 319 #endif
OLDNEW
« no previous file with comments | « src/pdf/SkPDFBitmap.cpp ('k') | src/pdf/SkPDFFontImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698