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

Unified Diff: include/core/SkCanvas.h

Issue 2130643004: drawTextRSXform (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/drawatlas.cpp ('k') | include/core/SkDevice.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkCanvas.h
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index ec14829ca85296d12d79d27a04073c6ee587c20e..d70934a3add7d60d894a9dd64ef53335006f91b7 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -989,6 +989,9 @@ public:
void drawTextOnPath(const void* text, size_t byteLength, const SkPath& path,
f(malita) 2016/07/07 16:51:05 Could this be refactored as a drawTextRSXform wrap
reed1 2016/07/07 18:51:50 Oddly, no. This guy warps each glyph, bending stra
const SkMatrix* matrix, const SkPaint& paint);
+ void drawTextRSXform(const void* text, size_t byteLength, const SkRSXform[],
f(malita) 2016/07/07 16:51:05 + Docs.
reed1 2016/07/07 18:51:50 Done.
+ const SkPaint& paint);
+
/** Draw the text blob, offset by (x,y), using the specified paint.
@param blob The text blob to be drawn
@param x The x-offset of the text being drawn
@@ -1324,6 +1327,8 @@ protected:
virtual void onDrawTextOnPath(const void* text, size_t byteLength,
const SkPath& path, const SkMatrix* matrix,
const SkPaint& paint);
+ virtual void onDrawTextRSXform(const void* text, size_t byteLength, const SkRSXform[],
f(malita) 2016/07/07 16:51:04 + 100000000 overrides in all SkCanvas subclasses.
reed1 2016/07/07 18:51:50 Eventually. The base impl calls through to a base-
+ const SkPaint& paint);
virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y,
const SkPaint& paint);
« no previous file with comments | « gm/drawatlas.cpp ('k') | include/core/SkDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698