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

Side by Side Diff: include/utils/SkNWayCanvas.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/utils/SkLuaCanvas.h ('k') | samplecode/SampleAll.cpp » ('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 /* 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 #ifndef SkNWayCanvas_DEFINED 9 #ifndef SkNWayCanvas_DEFINED
10 #define SkNWayCanvas_DEFINED 10 #define SkNWayCanvas_DEFINED
(...skipping 29 matching lines...) Expand all
40 void didSetMatrix(const SkMatrix&) SK_OVERRIDE; 40 void didSetMatrix(const SkMatrix&) SK_OVERRIDE;
41 41
42 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK_OVERRID E; 42 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK_OVERRID E;
43 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS calar y, 43 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS calar y,
44 const SkPaint&) SK_OVERRIDE; 44 const SkPaint&) SK_OVERRIDE;
45 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin t pos[], 45 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin t pos[],
46 const SkPaint&) SK_OVERRIDE; 46 const SkPaint&) SK_OVERRIDE;
47 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca lar xpos[], 47 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca lar xpos[],
48 SkScalar constY, const SkPaint&) SK_OVERRIDE; 48 SkScalar constY, const SkPaint&) SK_OVERRIDE;
49 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP ath& path, 49 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP ath& path,
50 const SkMatrix* matrix, const SkPaint&) SK_OVE RRIDE; 50 const SkMatrix* matrix,
51 SK_SUPPORT_LEGACY_DRAWTEXTONPATH_PARAM const Sk Paint&) SK_OVERRIDE;
51 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, 52 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y,
52 const SkPaint& paint) SK_OVERRIDE; 53 const SkPaint& paint) SK_OVERRIDE;
53 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], 54 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
54 const SkPoint texCoords[4], SkXfermode* xmode, 55 const SkPoint texCoords[4], SkXfermode* xmode,
55 const SkPaint& paint) SK_OVERRIDE; 56 const SkPaint& paint) SK_OVERRIDE;
56 57
57 void onDrawPaint(const SkPaint&) SK_OVERRIDE; 58 void onDrawPaint(const SkPaint&) SK_OVERRIDE;
58 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain t&) SK_OVERRIDE; 59 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain t&) SK_OVERRIDE;
59 void onDrawRect(const SkRect&, const SkPaint&) SK_OVERRIDE; 60 void onDrawRect(const SkRect&, const SkPaint&) SK_OVERRIDE;
60 void onDrawOval(const SkRect&, const SkPaint&) SK_OVERRIDE; 61 void onDrawOval(const SkRect&, const SkPaint&) SK_OVERRIDE;
(...skipping 22 matching lines...) Expand all
83 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) SK_OVE RRIDE; 84 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) SK_OVE RRIDE;
84 85
85 class Iter; 86 class Iter;
86 87
87 private: 88 private:
88 typedef SkCanvas INHERITED; 89 typedef SkCanvas INHERITED;
89 }; 90 };
90 91
91 92
92 #endif 93 #endif
OLDNEW
« no previous file with comments | « include/utils/SkLuaCanvas.h ('k') | samplecode/SampleAll.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698