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 "SampleCode.h" | 8 #include "SampleCode.h" |
9 #include "SkView.h" | 9 #include "SkView.h" |
10 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
11 #include "SkColorPriv.h" | 11 #include "SkColorPriv.h" |
12 #include "SkDevice.h" | |
13 #include "SkPaint.h" | 12 #include "SkPaint.h" |
14 #include "SkPath.h" | 13 #include "SkPath.h" |
15 #include "SkRandom.h" | 14 #include "SkRandom.h" |
16 | 15 |
17 #define W 150 | 16 #define W 150 |
18 #define H 200 | 17 #define H 200 |
19 | 18 |
20 static void show_text(SkCanvas* canvas, bool doAA) { | 19 static void show_text(SkCanvas* canvas, bool doAA) { |
21 SkRandom rand; | 20 SkRandom rand; |
22 SkPaint paint; | 21 SkPaint paint; |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 } | 155 } |
157 | 156 |
158 private: | 157 private: |
159 typedef SampleView INHERITED; | 158 typedef SampleView INHERITED; |
160 }; | 159 }; |
161 | 160 |
162 ////////////////////////////////////////////////////////////////////////////// | 161 ////////////////////////////////////////////////////////////////////////////// |
163 | 162 |
164 static SkView* MyFactory() { return new ClipView; } | 163 static SkView* MyFactory() { return new ClipView; } |
165 static SkViewRegister reg(MyFactory); | 164 static SkViewRegister reg(MyFactory); |
OLD | NEW |