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

Side by Side Diff: include/utils/SkDeferredCanvas.h

Issue 933483002: add Method param to drawTextOnPath, supporting SVG spec Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase 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
« no previous file with comments | « include/core/SkPicture.h ('k') | include/utils/SkDumpCanvas.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 2012 Google Inc. 2 * Copyright 2012 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 SkDeferredCanvas_DEFINED 8 #ifndef SkDeferredCanvas_DEFINED
9 #define SkDeferredCanvas_DEFINED 9 #define SkDeferredCanvas_DEFINED
10 10
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 void didSetMatrix(const SkMatrix&) SK_OVERRIDE; 154 void didSetMatrix(const SkMatrix&) SK_OVERRIDE;
155 155
156 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK_OVERRID E; 156 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK_OVERRID E;
157 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS calar y, 157 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS calar y,
158 const SkPaint&) SK_OVERRIDE; 158 const SkPaint&) SK_OVERRIDE;
159 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin t pos[], 159 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin t pos[],
160 const SkPaint&) SK_OVERRIDE; 160 const SkPaint&) SK_OVERRIDE;
161 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca lar xpos[], 161 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca lar xpos[],
162 SkScalar constY, const SkPaint&) SK_OVERRIDE; 162 SkScalar constY, const SkPaint&) SK_OVERRIDE;
163 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP ath& path, 163 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP ath& path,
164 const SkMatrix* matrix, const SkPaint&) SK_OVE RRIDE; 164 const SkMatrix* matrix,
165 SK_SUPPORT_LEGACY_DRAWTEXTONPATH_PARAM const Sk Paint&) SK_OVERRIDE;
165 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, 166 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y,
166 const SkPaint& paint) SK_OVERRIDE; 167 const SkPaint& paint) SK_OVERRIDE;
167 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], 168 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
168 const SkPoint texCoords[4], SkXfermode* xmode, 169 const SkPoint texCoords[4], SkXfermode* xmode,
169 const SkPaint& paint) SK_OVERRIDE; 170 const SkPaint& paint) SK_OVERRIDE;
170 171
171 void onDrawPaint(const SkPaint&) SK_OVERRIDE; 172 void onDrawPaint(const SkPaint&) SK_OVERRIDE;
172 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain t&) SK_OVERRIDE; 173 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain t&) SK_OVERRIDE;
173 void onDrawRect(const SkRect&, const SkPaint&) SK_OVERRIDE; 174 void onDrawRect(const SkRect&, const SkPaint&) SK_OVERRIDE;
174 void onDrawOval(const SkRect&, const SkPaint&) SK_OVERRIDE; 175 void onDrawOval(const SkRect&, const SkPaint&) SK_OVERRIDE;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 254
254 mutable SkISize fCachedCanvasSize; 255 mutable SkISize fCachedCanvasSize;
255 mutable bool fCachedCanvasSizeDirty; 256 mutable bool fCachedCanvasSizeDirty;
256 257
257 friend class SkDeferredCanvasTester; // for unit testing 258 friend class SkDeferredCanvasTester; // for unit testing
258 typedef SkCanvas INHERITED; 259 typedef SkCanvas INHERITED;
259 }; 260 };
260 261
261 262
262 #endif 263 #endif
OLDNEW
« no previous file with comments | « include/core/SkPicture.h ('k') | include/utils/SkDumpCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698