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 2130643004: drawTextRSXform (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update util canvases Created 4 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 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 #include "SkNWayCanvas.h" 7 #include "SkNWayCanvas.h"
8 8
9 SkNWayCanvas::SkNWayCanvas(int width, int height) 9 SkNWayCanvas::SkNWayCanvas(int width, int height)
10 : INHERITED(width, height) {} 10 : INHERITED(width, height) {}
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 } 247 }
248 248
249 void SkNWayCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const S kPath& path, 249 void SkNWayCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const S kPath& path,
250 const SkMatrix* matrix, const SkPaint& paint ) { 250 const SkMatrix* matrix, const SkPaint& paint ) {
251 Iter iter(fList); 251 Iter iter(fList);
252 while (iter.next()) { 252 while (iter.next()) {
253 iter->drawTextOnPath(text, byteLength, path, matrix, paint); 253 iter->drawTextOnPath(text, byteLength, path, matrix, paint);
254 } 254 }
255 } 255 }
256 256
257 void SkNWayCanvas::onDrawTextRSXform(const void* text, size_t byteLength, const SkRSXform xform[],
258 const SkRect* cull, const SkPaint& paint) {
259 Iter iter(fList);
260 while (iter.next()) {
261 iter->drawTextRSXform(text, byteLength, xform, cull, paint);
262 }
263 }
264
257 void SkNWayCanvas::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y , 265 void SkNWayCanvas::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y ,
258 const SkPaint &paint) { 266 const SkPaint &paint) {
259 Iter iter(fList); 267 Iter iter(fList);
260 while (iter.next()) { 268 while (iter.next()) {
261 iter->drawTextBlob(blob, x, y, paint); 269 iter->drawTextBlob(blob, x, y, paint);
262 } 270 }
263 } 271 }
264 272
265 void SkNWayCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* matri x, 273 void SkNWayCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* matri x,
266 const SkPaint* paint) { 274 const SkPaint* paint) {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 308
301 #ifdef SK_SUPPORT_LEGACY_DRAWFILTER 309 #ifdef SK_SUPPORT_LEGACY_DRAWFILTER
302 SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) { 310 SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) {
303 Iter iter(fList); 311 Iter iter(fList);
304 while (iter.next()) { 312 while (iter.next()) {
305 iter->setDrawFilter(filter); 313 iter->setDrawFilter(filter);
306 } 314 }
307 return this->INHERITED::setDrawFilter(filter); 315 return this->INHERITED::setDrawFilter(filter);
308 } 316 }
309 #endif 317 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698