| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |