OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 p.setColor(SK_ColorBLUE); | 61 p.setColor(SK_ColorBLUE); |
62 p.setStrokeWidth(2); | 62 p.setStrokeWidth(2); |
63 canvas->drawRect(rect2, p); | 63 canvas->drawRect(rect2, p); |
64 } | 64 } |
65 | 65 |
66 private: | 66 private: |
67 typedef skiagm::GM INHERITED; | 67 typedef skiagm::GM INHERITED; |
68 }; | 68 }; |
69 | 69 |
70 DEF_GM( return SkNEW(ClipStrokeRectGM); ) | 70 DEF_GM(return new ClipStrokeRectGM;) |
71 | |
OLD | NEW |