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

Side by Side Diff: src/utils/SkPaintFilterCanvas.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 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 #include "SkPaintFilterCanvas.h" 8 #include "SkPaintFilterCanvas.h"
9 9
10 #include "SkPaint.h" 10 #include "SkPaint.h"
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 } 197 }
198 198
199 void SkPaintFilterCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path, 199 void SkPaintFilterCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path,
200 const SkMatrix* matrix, const SkPaint & paint) { 200 const SkMatrix* matrix, const SkPaint & paint) {
201 AutoPaintFilter apf(this, kText_Type, paint); 201 AutoPaintFilter apf(this, kText_Type, paint);
202 if (apf.shouldDraw()) { 202 if (apf.shouldDraw()) {
203 this->INHERITED::onDrawTextOnPath(text, byteLength, path, matrix, *apf.p aint()); 203 this->INHERITED::onDrawTextOnPath(text, byteLength, path, matrix, *apf.p aint());
204 } 204 }
205 } 205 }
206 206
207 void SkPaintFilterCanvas::onDrawTextRSXform(const void* text, size_t byteLength,
208 const SkRSXform xform[], const SkRec t* cull,
209 const SkPaint& paint) {
210 AutoPaintFilter apf(this, kText_Type, paint);
211 if (apf.shouldDraw()) {
212 this->INHERITED::onDrawTextRSXform(text, byteLength, xform, cull, *apf.p aint());
213 }
214 }
215
207 void SkPaintFilterCanvas::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkS calar y, 216 void SkPaintFilterCanvas::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkS calar y,
208 const SkPaint& paint) { 217 const SkPaint& paint) {
209 AutoPaintFilter apf(this, kTextBlob_Type, paint); 218 AutoPaintFilter apf(this, kTextBlob_Type, paint);
210 if (apf.shouldDraw()) { 219 if (apf.shouldDraw()) {
211 this->INHERITED::onDrawTextBlob(blob, x, y, *apf.paint()); 220 this->INHERITED::onDrawTextBlob(blob, x, y, *apf.paint());
212 } 221 }
213 } 222 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698