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

Side by Side Diff: tools/android/SkAndroidSDKCanvas.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 "SkAndroidSDKCanvas.h" 8 #include "SkAndroidSDKCanvas.h"
9 9
10 #include "SkColorFilter.h" 10 #include "SkColorFilter.h"
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 } 193 }
194 void SkAndroidSDKCanvas::onDrawPosTextH(const void* text, 194 void SkAndroidSDKCanvas::onDrawPosTextH(const void* text,
195 size_t byteLength, 195 size_t byteLength,
196 const SkScalar xpos[], 196 const SkScalar xpos[],
197 SkScalar constY, 197 SkScalar constY,
198 const SkPaint& paint) { 198 const SkPaint& paint) {
199 FILTER(paint); 199 FILTER(paint);
200 fProxyTarget->drawPosTextH(text, byteLength, xpos, constY, filteredPaint); 200 fProxyTarget->drawPosTextH(text, byteLength, xpos, constY, filteredPaint);
201 } 201 }
202 void SkAndroidSDKCanvas::onDrawTextOnPath(const void* text, 202 void SkAndroidSDKCanvas::onDrawTextOnPath(const void* text,
203 size_t byteLength, 203 size_t byteLength,
204 const SkPath& path, 204 const SkPath& path,
205 const SkMatrix* matrix, 205 const SkMatrix* matrix,
206 const SkPaint& paint) { 206 const SkPaint& paint) {
207 FILTER(paint); 207 FILTER(paint);
208 fProxyTarget->drawTextOnPath(text, byteLength, path, matrix, filteredPaint); 208 fProxyTarget->drawTextOnPath(text, byteLength, path, matrix, filteredPaint);
209 } 209 }
210 void SkAndroidSDKCanvas::onDrawTextRSXform(const void* text, size_t byteLength,
211 const SkRSXform xform[], const SkRect * cull,
212 const SkPaint& paint) {
213 FILTER(paint);
214 fProxyTarget->drawTextRSXform(text, byteLength, xform, cull, filteredPaint);
215 }
210 void SkAndroidSDKCanvas::onDrawTextBlob(const SkTextBlob* blob, 216 void SkAndroidSDKCanvas::onDrawTextBlob(const SkTextBlob* blob,
211 SkScalar x, 217 SkScalar x,
212 SkScalar y, 218 SkScalar y,
213 const SkPaint& paint) { 219 const SkPaint& paint) {
214 FILTER(paint); 220 FILTER(paint);
215 fProxyTarget->drawTextBlob(blob, x, y, filteredPaint); 221 fProxyTarget->drawTextBlob(blob, x, y, filteredPaint);
216 } 222 }
217 223
218 void SkAndroidSDKCanvas::onDrawPatch(const SkPoint cubics[12], 224 void SkAndroidSDKCanvas::onDrawPatch(const SkPoint cubics[12],
219 const SkColor colors[4], 225 const SkColor colors[4],
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 SkRegion::Op op, 354 SkRegion::Op op,
349 ClipEdgeStyle style) { 355 ClipEdgeStyle style) {
350 fProxyTarget->clipPath(path, op, style); 356 fProxyTarget->clipPath(path, op, style);
351 } 357 }
352 358
353 void SkAndroidSDKCanvas::onClipRegion(const SkRegion& region, SkRegion::Op op) { 359 void SkAndroidSDKCanvas::onClipRegion(const SkRegion& region, SkRegion::Op op) {
354 fProxyTarget->clipRegion(region, op); 360 fProxyTarget->clipRegion(region, op);
355 } 361 }
356 362
357 void SkAndroidSDKCanvas::onDiscard() { fProxyTarget->discard(); } 363 void SkAndroidSDKCanvas::onDiscard() { fProxyTarget->discard(); }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698