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

Side by Side Diff: include/core/SkBitmapDevice.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
« no previous file with comments | « no previous file | include/core/SkDevice.h » ('j') | src/core/SkDevice.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 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 SkBitmapDevice_DEFINED 9 #ifndef SkBitmapDevice_DEFINED
10 #define SkBitmapDevice_DEFINED 10 #define SkBitmapDevice_DEFINED
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 /** 87 /**
88 * Does not handle text decoration. 88 * Does not handle text decoration.
89 * Decorations (underline and stike-thru) will be handled by SkCanvas. 89 * Decorations (underline and stike-thru) will be handled by SkCanvas.
90 */ 90 */
91 virtual void drawText(const SkDraw&, const void* text, size_t len, 91 virtual void drawText(const SkDraw&, const void* text, size_t len,
92 SkScalar x, SkScalar y, const SkPaint& paint) SK_OVERR IDE; 92 SkScalar x, SkScalar y, const SkPaint& paint) SK_OVERR IDE;
93 virtual void drawPosText(const SkDraw&, const void* text, size_t len, 93 virtual void drawPosText(const SkDraw&, const void* text, size_t len,
94 const SkScalar pos[], int scalarsPerPos, 94 const SkScalar pos[], int scalarsPerPos,
95 const SkPoint& offset, const SkPaint& paint) SK_OVE RRIDE; 95 const SkPoint& offset, const SkPaint& paint) SK_OVE RRIDE;
96 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len,
97 const SkPath& path, const SkMatrix* matrix,
98 const SkPaint& paint) SK_OVERRIDE;
99 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou nt, 96 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou nt,
100 const SkPoint verts[], const SkPoint texs[], 97 const SkPoint verts[], const SkPoint texs[],
101 const SkColor colors[], SkXfermode* xmode, 98 const SkColor colors[], SkXfermode* xmode,
102 const uint16_t indices[], int indexCount, 99 const uint16_t indices[], int indexCount,
103 const SkPaint& paint) SK_OVERRIDE; 100 const SkPaint& paint) SK_OVERRIDE;
104 /** The SkBaseDevice passed will be an SkBaseDevice which was returned by a call to 101 /** The SkBaseDevice passed will be an SkBaseDevice which was returned by a call to
105 onCreateCompatibleDevice on this device with kSaveLayer_Usage. 102 onCreateCompatibleDevice on this device with kSaveLayer_Usage.
106 */ 103 */
107 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, 104 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y,
108 const SkPaint&) SK_OVERRIDE; 105 const SkPaint&) SK_OVERRIDE;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 const void* peekPixels(SkImageInfo*, size_t* rowBytes) SK_OVERRIDE; 151 const void* peekPixels(SkImageInfo*, size_t* rowBytes) SK_OVERRIDE;
155 152
156 SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE; 153 SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE;
157 154
158 SkBitmap fBitmap; 155 SkBitmap fBitmap;
159 156
160 typedef SkBaseDevice INHERITED; 157 typedef SkBaseDevice INHERITED;
161 }; 158 };
162 159
163 #endif // SkBitmapDevice_DEFINED 160 #endif // SkBitmapDevice_DEFINED
OLDNEW
« no previous file with comments | « no previous file | include/core/SkDevice.h » ('j') | src/core/SkDevice.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698