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

Side by Side Diff: src/utils/SkNWayCanvas.cpp

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/utils/SkLuaCanvas.cpp ('k') | src/utils/debugger/SkDebugCanvas.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 /* 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 #include "SkNWayCanvas.h" 8 #include "SkNWayCanvas.h"
9 9
10 SkNWayCanvas::SkNWayCanvas(int width, int height) 10 SkNWayCanvas::SkNWayCanvas(int width, int height)
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 250
251 void SkNWayCanvas::onDrawPosTextH(const void* text, size_t byteLength, const SkS calar xpos[], 251 void SkNWayCanvas::onDrawPosTextH(const void* text, size_t byteLength, const SkS calar xpos[],
252 SkScalar constY, const SkPaint& paint) { 252 SkScalar constY, const SkPaint& paint) {
253 Iter iter(fList); 253 Iter iter(fList);
254 while (iter.next()) { 254 while (iter.next()) {
255 iter->drawPosTextH(text, byteLength, xpos, constY, paint); 255 iter->drawPosTextH(text, byteLength, xpos, constY, paint);
256 } 256 }
257 } 257 }
258 258
259 void SkNWayCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const S kPath& path, 259 void SkNWayCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const S kPath& path,
260 const SkMatrix* matrix, const SkPaint& paint ) { 260 const SkMatrix* matrix,
261 SK_SUPPORT_LEGACY_DRAWTEXTONPATH_PARAM const SkPaint& paint) {
261 Iter iter(fList); 262 Iter iter(fList);
262 while (iter.next()) { 263 while (iter.next()) {
263 iter->drawTextOnPath(text, byteLength, path, matrix, paint); 264 iter->drawTextOnPath(text, byteLength, path, matrix,
265 SK_SUPPORT_LEGACY_DRAWTEXTONPATH_ARG paint);
264 } 266 }
265 } 267 }
266 268
267 void SkNWayCanvas::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y , 269 void SkNWayCanvas::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y ,
268 const SkPaint &paint) { 270 const SkPaint &paint) {
269 Iter iter(fList); 271 Iter iter(fList);
270 while (iter.next()) { 272 while (iter.next()) {
271 iter->drawTextBlob(blob, x, y, paint); 273 iter->drawTextBlob(blob, x, y, paint);
272 } 274 }
273 } 275 }
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 iter->addComment(kywd, value); 324 iter->addComment(kywd, value);
323 } 325 }
324 } 326 }
325 327
326 void SkNWayCanvas::endCommentGroup() { 328 void SkNWayCanvas::endCommentGroup() {
327 Iter iter(fList); 329 Iter iter(fList);
328 while (iter.next()) { 330 while (iter.next()) {
329 iter->endCommentGroup(); 331 iter->endCommentGroup();
330 } 332 }
331 } 333 }
OLDNEW
« no previous file with comments | « src/utils/SkLuaCanvas.cpp ('k') | src/utils/debugger/SkDebugCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698