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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 SkCanvas::DrawBitmapRectFlags flags) SK_OVERRIDE; | 91 SkCanvas::DrawBitmapRectFlags flags) SK_OVERRIDE; |
92 void drawBitmap(const SkDraw&, const SkBitmap& bitmap, | 92 void drawBitmap(const SkDraw&, const SkBitmap& bitmap, |
93 const SkMatrix& matrix, const SkPaint&) SK_OVERRIDE; | 93 const SkMatrix& matrix, const SkPaint&) SK_OVERRIDE; |
94 void drawSprite(const SkDraw&, const SkBitmap& bitmap, int x, int y, | 94 void drawSprite(const SkDraw&, const SkBitmap& bitmap, int x, int y, |
95 const SkPaint& paint) SK_OVERRIDE; | 95 const SkPaint& paint) SK_OVERRIDE; |
96 void drawText(const SkDraw&, const void* text, size_t len, | 96 void drawText(const SkDraw&, const void* text, size_t len, |
97 SkScalar x, SkScalar y, const SkPaint&) SK_OVERRIDE; | 97 SkScalar x, SkScalar y, const SkPaint&) SK_OVERRIDE; |
98 void drawPosText(const SkDraw&, const void* text, size_t len, | 98 void drawPosText(const SkDraw&, const void* text, size_t len, |
99 const SkScalar pos[], int scalarsPerPos, | 99 const SkScalar pos[], int scalarsPerPos, |
100 const SkPoint& offset, const SkPaint&) SK_OVERRIDE; | 100 const SkPoint& offset, const SkPaint&) SK_OVERRIDE; |
101 void drawTextOnPath(const SkDraw&, const void* text, size_t len, | |
102 const SkPath& path, const SkMatrix* matrix, | |
103 const SkPaint& paint) SK_OVERRIDE; | |
104 void drawVertices(const SkDraw&, SkCanvas::VertexMode, | 101 void drawVertices(const SkDraw&, SkCanvas::VertexMode, |
105 int vertexCount, const SkPoint verts[], | 102 int vertexCount, const SkPoint verts[], |
106 const SkPoint texs[], const SkColor colors[], | 103 const SkPoint texs[], const SkColor colors[], |
107 SkXfermode* xmode, const uint16_t indices[], | 104 SkXfermode* xmode, const uint16_t indices[], |
108 int indexCount, const SkPaint& paint) SK_OVERRIDE; | 105 int indexCount, const SkPaint& paint) SK_OVERRIDE; |
109 void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, | 106 void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, |
110 const SkPaint&) SK_OVERRIDE; | 107 const SkPaint&) SK_OVERRIDE; |
111 | 108 |
112 void onAttachToCanvas(SkCanvas* canvas) SK_OVERRIDE; | 109 void onAttachToCanvas(SkCanvas* canvas) SK_OVERRIDE; |
113 void onDetachFromCanvas() SK_OVERRIDE; | 110 void onDetachFromCanvas() SK_OVERRIDE; |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 | 327 |
331 typedef SkBaseDevice INHERITED; | 328 typedef SkBaseDevice INHERITED; |
332 | 329 |
333 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create | 330 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create |
334 // an SkPDFDevice | 331 // an SkPDFDevice |
335 //friend class SkDocument_PDF; | 332 //friend class SkDocument_PDF; |
336 //friend class SkPDFImageShader; | 333 //friend class SkPDFImageShader; |
337 }; | 334 }; |
338 | 335 |
339 #endif | 336 #endif |
OLD | NEW |