OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
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 SkPDFDevice_DEFINED | 10 #ifndef SkPDFDevice_DEFINED |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 * (used by layer restore) draws the device after this initial | 63 * (used by layer restore) draws the device after this initial |
64 * transform is applied, so the PDF device does an | 64 * transform is applied, so the PDF device does an |
65 * inverse scale+translate to accommodate the one that SkPDFDevice | 65 * inverse scale+translate to accommodate the one that SkPDFDevice |
66 * always does. | 66 * always does. |
67 */ | 67 */ |
68 // Deprecated, please use SkDocument::CreatePdf() instead. | 68 // Deprecated, please use SkDocument::CreatePdf() instead. |
69 SK_API SkPDFDevice(const SkISize& pageSize, const SkISize& contentSize, | 69 SK_API SkPDFDevice(const SkISize& pageSize, const SkISize& contentSize, |
70 const SkMatrix& initialTransform); | 70 const SkMatrix& initialTransform); |
71 SK_API virtual ~SkPDFDevice(); | 71 SK_API virtual ~SkPDFDevice(); |
72 | 72 |
73 virtual uint32_t getDeviceCapabilities() SK_OVERRIDE; | |
74 | |
75 virtual void clear(SkColor color) SK_OVERRIDE; | 73 virtual void clear(SkColor color) SK_OVERRIDE; |
76 | 74 |
77 /** These are called inside the per-device-layer loop for each draw call. | 75 /** These are called inside the per-device-layer loop for each draw call. |
78 When these are called, we have already applied any saveLayer operations, | 76 When these are called, we have already applied any saveLayer operations, |
79 and are handling any looping from the paint, and any effects from the | 77 and are handling any looping from the paint, and any effects from the |
80 DrawFilter. | 78 DrawFilter. |
81 */ | 79 */ |
82 virtual void drawPaint(const SkDraw&, const SkPaint& paint) SK_OVERRIDE; | 80 virtual void drawPaint(const SkDraw&, const SkPaint& paint) SK_OVERRIDE; |
83 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, | 81 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, |
84 size_t count, const SkPoint[], | 82 size_t count, const SkPoint[], |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 | 328 |
331 typedef SkBitmapDevice INHERITED; | 329 typedef SkBitmapDevice INHERITED; |
332 | 330 |
333 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create | 331 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create |
334 // an SkPDFDevice | 332 // an SkPDFDevice |
335 //friend class SkDocument_PDF; | 333 //friend class SkDocument_PDF; |
336 //friend class SkPDFImageShader; | 334 //friend class SkPDFImageShader; |
337 }; | 335 }; |
338 | 336 |
339 #endif | 337 #endif |
OLD | NEW |