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

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

Issue 499413002: SkTextBlob plumbing (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: review comments Created 6 years, 3 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/SkProxyCanvas.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 #include "SkNWayCanvas.h" 8 #include "SkNWayCanvas.h"
9 9
10 SkNWayCanvas::SkNWayCanvas(int width, int height) 10 SkNWayCanvas::SkNWayCanvas(int width, int height)
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 } 258 }
259 259
260 void SkNWayCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const S kPath& path, 260 void SkNWayCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const S kPath& path,
261 const SkMatrix* matrix, const SkPaint& paint ) { 261 const SkMatrix* matrix, const SkPaint& paint ) {
262 Iter iter(fList); 262 Iter iter(fList);
263 while (iter.next()) { 263 while (iter.next()) {
264 iter->drawTextOnPath(text, byteLength, path, matrix, paint); 264 iter->drawTextOnPath(text, byteLength, path, matrix, paint);
265 } 265 }
266 } 266 }
267 267
268 void SkNWayCanvas::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y ,
269 const SkPaint &paint) {
270 Iter iter(fList);
271 while (iter.next()) {
272 iter->drawTextBlob(blob, x, y, paint);
273 }
274 }
275
268 void SkNWayCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* matri x, 276 void SkNWayCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* matri x,
269 const SkPaint* paint) { 277 const SkPaint* paint) {
270 Iter iter(fList); 278 Iter iter(fList);
271 while (iter.next()) { 279 while (iter.next()) {
272 iter->drawPicture(picture, matrix, paint); 280 iter->drawPicture(picture, matrix, paint);
273 } 281 }
274 } 282 }
275 283
276 void SkNWayCanvas::drawVertices(VertexMode vmode, int vertexCount, 284 void SkNWayCanvas::drawVertices(VertexMode vmode, int vertexCount,
277 const SkPoint vertices[], const SkPoint texs[], 285 const SkPoint vertices[], const SkPoint texs[],
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 iter->addComment(kywd, value); 330 iter->addComment(kywd, value);
323 } 331 }
324 } 332 }
325 333
326 void SkNWayCanvas::endCommentGroup() { 334 void SkNWayCanvas::endCommentGroup() {
327 Iter iter(fList); 335 Iter iter(fList);
328 while (iter.next()) { 336 while (iter.next()) {
329 iter->endCommentGroup(); 337 iter->endCommentGroup();
330 } 338 }
331 } 339 }
OLDNEW
« no previous file with comments | « src/utils/SkLuaCanvas.cpp ('k') | src/utils/SkProxyCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698