OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "gm.h" | 8 #include "gm.h" |
9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
10 #include "SkPath.h" | 10 #include "SkPath.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 canvas->drawText("/", 1, pos.fX, pos.fY, paint); | 45 canvas->drawText("/", 1, pos.fX, pos.fY, paint); |
46 | 46 |
47 paint.setColor(SK_ColorBLUE); | 47 paint.setColor(SK_ColorBLUE); |
48 canvas->drawPosText("\\", 1, &pos, paint); | 48 canvas->drawPosText("\\", 1, &pos, paint); |
49 } | 49 } |
50 | 50 |
51 private: | 51 private: |
52 typedef skiagm::GM INHERITED; | 52 typedef skiagm::GM INHERITED; |
53 }; | 53 }; |
54 | 54 |
55 DEF_GM( return SkNEW(BigTextGM); ) | 55 DEF_GM(return new BigTextGM;) |
OLD | NEW |