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

Unified Diff: include/core/SkCanvas.h

Issue 473633002: SkTextBlob (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Consolidated blob constructor + comments. Created 6 years, 4 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
Index: include/core/SkCanvas.h
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index 8afeae6d5f55819f3fb06faa0485554ab2ffe432..9730c3912ab7a0b406b05b34cbe1827053ca0399 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -33,6 +33,7 @@ class SkPicture;
class SkRRect;
class SkSurface;
class SkSurface_Base;
+class SkTextBlob;
class GrContext;
class GrRenderTarget;
@@ -956,6 +957,8 @@ public:
const SkPath& path, const SkMatrix* matrix,
const SkPaint& paint);
+ void drawTextBlob(const SkTextBlob* blob, const SkPoint& offset, const SkPaint& paint);
reed1 2014/08/14 15:55:49 For consistency (and because I think having to con
f(malita) 2014/08/14 16:27:01 SGTM, will do.
+
/** PRIVATE / EXPERIMENTAL -- do not call
Perform back-end analysis/optimization of a picture. This may attach
optimization data to the picture which can be used by a later
@@ -1230,6 +1233,9 @@ protected:
virtual void onDrawTextOnPath(const void* text, size_t byteLength,
const SkPath& path, const SkMatrix* matrix,
const SkPaint& paint);
+
+ virtual void onDrawTextBlob(const SkTextBlob* blob, const SkPoint& offset,
+ const SkPaint& paint);
virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
const SkPoint texCoords[4], SkXfermode* xmode, const SkPaint& paint);
« no previous file with comments | « gyp/core.gypi ('k') | include/core/SkDevice.h » ('j') | include/core/SkTextBlob.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698