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

Side by Side Diff: include/core/SkDraw.h

Issue 925343003: use common impl for drawTextOnPath (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: move includes to the top Created 5 years, 10 months 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
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 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 SkDraw_DEFINED 10 #ifndef SkDraw_DEFINED
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 /* If dstOrNull is null, computes a dst by mapping the bitmap's bounds throu gh the matrix. */ 62 /* If dstOrNull is null, computes a dst by mapping the bitmap's bounds throu gh the matrix. */
63 void drawBitmap(const SkBitmap&, const SkMatrix&, const SkRect* dstOrNull , 63 void drawBitmap(const SkBitmap&, const SkMatrix&, const SkRect* dstOrNull ,
64 const SkPaint&) const; 64 const SkPaint&) const;
65 void drawSprite(const SkBitmap&, int x, int y, const SkPaint&) const; 65 void drawSprite(const SkBitmap&, int x, int y, const SkPaint&) const;
66 void drawText(const char text[], size_t byteLength, SkScalar x, 66 void drawText(const char text[], size_t byteLength, SkScalar x,
67 SkScalar y, const SkPaint& paint) const; 67 SkScalar y, const SkPaint& paint) const;
68 void drawPosText(const char text[], size_t byteLength, 68 void drawPosText(const char text[], size_t byteLength,
69 const SkScalar pos[], int scalarsPerPosition, 69 const SkScalar pos[], int scalarsPerPosition,
70 const SkPoint& offset, const SkPaint& paint) const; 70 const SkPoint& offset, const SkPaint& paint) const;
71 void drawTextOnPath(const char text[], size_t byteLength,
72 const SkPath&, const SkMatrix*, const SkPaint&) const;
73 void drawVertices(SkCanvas::VertexMode mode, int count, 71 void drawVertices(SkCanvas::VertexMode mode, int count,
74 const SkPoint vertices[], const SkPoint textures[], 72 const SkPoint vertices[], const SkPoint textures[],
75 const SkColor colors[], SkXfermode* xmode, 73 const SkColor colors[], SkXfermode* xmode,
76 const uint16_t indices[], int ptCount, 74 const uint16_t indices[], int ptCount,
77 const SkPaint& paint) const; 75 const SkPaint& paint) const;
78 76
79 /** 77 /**
80 * Overwrite the target with the path's coverage (i.e. its mask). 78 * Overwrite the target with the path's coverage (i.e. its mask).
81 * Will overwrite the entire device, so it need not be zero'd first. 79 * Will overwrite the entire device, so it need not be zero'd first.
82 * 80 *
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 SkDrawProcs* fProcs; // optional 150 SkDrawProcs* fProcs; // optional
153 151
154 #ifdef SK_DEBUG 152 #ifdef SK_DEBUG
155 void validate() const; 153 void validate() const;
156 #else 154 #else
157 void validate() const {} 155 void validate() const {}
158 #endif 156 #endif
159 }; 157 };
160 158
161 #endif 159 #endif
OLDNEW
« no previous file with comments | « include/core/SkDevice.h ('k') | include/pdf/SkPDFDevice.h » ('j') | src/core/SkDevice.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698