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

Side by Side Diff: src/svg/SkSVGDevice.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 | « src/pipe/SkGPipeWrite.cpp ('k') | src/svg/SkSVGDevice.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 * Copyright 2015 Google Inc. 2 * Copyright 2015 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 SkSVGDevice_DEFINED 8 #ifndef SkSVGDevice_DEFINED
9 #define SkSVGDevice_DEFINED 9 #define SkSVGDevice_DEFINED
10 10
(...skipping 28 matching lines...) Expand all
39 const SkPaint& paint, 39 const SkPaint& paint,
40 SkCanvas::DrawBitmapRectFlags flags) SK_OVERRIDE ; 40 SkCanvas::DrawBitmapRectFlags flags) SK_OVERRIDE ;
41 41
42 virtual void drawText(const SkDraw&, const void* text, size_t len, 42 virtual void drawText(const SkDraw&, const void* text, size_t len,
43 SkScalar x, SkScalar y, const SkPaint& paint) SK_OVERR IDE; 43 SkScalar x, SkScalar y, const SkPaint& paint) SK_OVERR IDE;
44 virtual void drawPosText(const SkDraw&, const void* text, size_t len, 44 virtual void drawPosText(const SkDraw&, const void* text, size_t len,
45 const SkScalar pos[], int scalarsPerPos, 45 const SkScalar pos[], int scalarsPerPos,
46 const SkPoint& offset, const SkPaint& paint) SK_OVE RRIDE; 46 const SkPoint& offset, const SkPaint& paint) SK_OVE RRIDE;
47 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, 47 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len,
48 const SkPath& path, const SkMatrix* matrix, 48 const SkPath& path, const SkMatrix* matrix,
49 SK_SUPPORT_LEGACY_DRAWTEXTONPATH_PARAM
49 const SkPaint& paint) SK_OVERRIDE; 50 const SkPaint& paint) SK_OVERRIDE;
50 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou nt, 51 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou nt,
51 const SkPoint verts[], const SkPoint texs[], 52 const SkPoint verts[], const SkPoint texs[],
52 const SkColor colors[], SkXfermode* xmode, 53 const SkColor colors[], SkXfermode* xmode,
53 const uint16_t indices[], int indexCount, 54 const uint16_t indices[], int indexCount,
54 const SkPaint& paint) SK_OVERRIDE; 55 const SkPaint& paint) SK_OVERRIDE;
55 56
56 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, 57 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y,
57 const SkPaint&) SK_OVERRIDE; 58 const SkPaint&) SK_OVERRIDE;
58 virtual const SkBitmap& onAccessBitmap() SK_OVERRIDE; 59 virtual const SkBitmap& onAccessBitmap() SK_OVERRIDE;
59 60
60 private: 61 private:
61 SkSVGDevice(const SkISize& size, SkXMLWriter* writer); 62 SkSVGDevice(const SkISize& size, SkXMLWriter* writer);
62 virtual ~SkSVGDevice(); 63 virtual ~SkSVGDevice();
63 64
64 class AutoElement; 65 class AutoElement;
65 class ResourceBucket; 66 class ResourceBucket;
66 67
67 SkXMLWriter* fWriter; 68 SkXMLWriter* fWriter;
68 SkAutoTDelete<AutoElement> fRootElement; 69 SkAutoTDelete<AutoElement> fRootElement;
69 SkAutoTDelete<ResourceBucket> fResourceBucket; 70 SkAutoTDelete<ResourceBucket> fResourceBucket;
70 SkBitmap fLegacyBitmap; 71 SkBitmap fLegacyBitmap;
71 }; 72 };
72 73
73 #endif // SkSVGDevice_DEFINED 74 #endif // SkSVGDevice_DEFINED
OLDNEW
« no previous file with comments | « src/pipe/SkGPipeWrite.cpp ('k') | src/svg/SkSVGDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698