diff options
author | halcanary <halcanary@google.com> | 2015-08-26 13:07:48 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-26 13:07:49 -0700 |
commit | 385fe4d4b62d7d1dd76116dd570df3290a2f487b (patch) | |
tree | 53d982ff238828331e86acd44071a44162a8688c /gm/gm.h | |
parent | 5015176adf046ef906a2313b6e6b64b72cc84898 (diff) |
Style Change: SkNEW->new; SkDELETE->delete
DOCS_PREVIEW= https://skia.org/?cl=1316123003
Review URL: https://codereview.chromium.org/1316123003
Diffstat (limited to 'gm/gm.h')
-rw-r--r-- | gm/gm.h | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -24,13 +24,11 @@ struct GrContextOptions; static skiagm::GMRegistry SK_MACRO_APPEND_LINE(R_)(SK_MACRO_APPEND_LINE(F_)); // See colorwheel.cpp for example usage. -#define DEF_SIMPLE_GM(NAME, CANVAS, W, H) \ - static void SK_MACRO_CONCAT(NAME, _GM)(SkCanvas* CANVAS); \ - DEF_GM( return SkNEW_ARGS(skiagm::SimpleGM, \ - (SkString(#NAME), \ - SK_MACRO_CONCAT(NAME, _GM), \ - SkISize::Make(W, H))); ) \ - void SK_MACRO_CONCAT(NAME, _GM)(SkCanvas* CANVAS) +#define DEF_SIMPLE_GM(NAME, CANVAS, W, H) \ + static void SK_MACRO_CONCAT(NAME, _GM)(SkCanvas * CANVAS); \ + DEF_GM(return new skiagm::SimpleGM(SkString(#NAME), SK_MACRO_CONCAT(NAME, _GM), \ + SkISize::Make(W, H));) \ + void SK_MACRO_CONCAT(NAME, _GM)(SkCanvas * CANVAS) namespace skiagm { |