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

Unified Diff: samplecode/SampleCode.h

Issue 808793002: add sample for arcTo (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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 | « include/core/SkRect.h ('k') | samplecode/SamplePath.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SampleCode.h
diff --git a/samplecode/SampleCode.h b/samplecode/SampleCode.h
index 26a8207ddcb6d29c9c9ba96550f7af806dcc130b..93127ebb644d40a4d54afe8c4f83d24499c200e6 100644
--- a/samplecode/SampleCode.h
+++ b/samplecode/SampleCode.h
@@ -17,6 +17,11 @@
#include "SkOSMenu.h"
class GrContext;
+#define DEF_SAMPLE(code) \
+ static SkView* SK_MACRO_APPEND_LINE(F_)() { code } \
+ static SkViewRegister SK_MACRO_APPEND_LINE(R_)(SK_MACRO_APPEND_LINE(F_));
+
+
class SampleCode {
public:
static bool KeyQ(const SkEvent&, SkKey* outKey);
« no previous file with comments | « include/core/SkRect.h ('k') | samplecode/SamplePath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698