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

Unified Diff: src/core/SkRecords.h

Issue 933483002: add Method param to drawTextOnPath, supporting SVG spec Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 10 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 | « src/core/SkRecorder.cpp ('k') | src/pipe/SkGPipeRead.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkRecords.h
diff --git a/src/core/SkRecords.h b/src/core/SkRecords.h
index 319d155054b548762a458f6bd859d42bb905ee71..bfa6b47a75cdc22c4ddf2a5c542d30290a72968d 100644
--- a/src/core/SkRecords.h
+++ b/src/core/SkRecords.h
@@ -118,6 +118,14 @@ struct T { \
A a; B b; C c; D d; E e; \
};
+#define RECORD6(T, A, a, B, b, C, c, D, d, E, e, F, f) \
+struct T { \
+ static const Type kType = T##_Type; \
+ template <typename Z, typename Y, typename X, typename W, typename V, typename U> \
+ T(Z a, Y b, X c, W d, V e, U f) : a(a), b(b), c(c), d(d), e(e), f(f) {} \
+ A a; B b; C c; D d; E e; F f; \
+};
+
#define ACT_AS_PTR(ptr) \
operator T*() const { return ptr; } \
T* operator->() const { return ptr; }
@@ -297,10 +305,12 @@ RECORD4(DrawTextBlob, SkPaint, paint,
RefBox<const SkTextBlob>, blob,
SkScalar, x,
SkScalar, y);
-RECORD5(DrawTextOnPath, SkPaint, paint,
+
+RECORD6(DrawTextOnPath, SkPaint, paint,
PODArray<char>, text,
size_t, byteLength,
PreCachedPath, path,
+ SkCanvas::TextOnPathMethod, method,
TypedMatrix, matrix);
RECORD5(DrawPatch, SkPaint, paint,
« no previous file with comments | « src/core/SkRecorder.cpp ('k') | src/pipe/SkGPipeRead.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698