OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2015 Google Inc. | 3 * Copyright 2015 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 #include "gm.h" | 8 #include "gm.h" |
9 #include "SkArithmeticMode.h" | 9 #include "SkArithmeticMode.h" |
10 #include "SkPath.h" | |
11 #include "SkShader.h" | 10 #include "SkShader.h" |
12 #include "SkXfermode.h" | 11 #include "SkXfermode.h" |
13 | 12 |
14 enum { | 13 enum { |
15 kXfermodeCount = SkXfermode::kLastMode + 2, // All xfermodes plus arithmetic
mode. | 14 kXfermodeCount = SkXfermode::kLastMode + 2, // All xfermodes plus arithmetic
mode. |
16 kShapeSize = 22, | 15 kShapeSize = 22, |
17 kShapeSpacing = 36, | 16 kShapeSpacing = 36, |
18 kShapeTypeSpacing = 4 * kShapeSpacing / 3, | 17 kShapeTypeSpacing = 4 * kShapeSpacing / 3, |
19 kPaintSpacing = 3 * kShapeTypeSpacing, | 18 kPaintSpacing = 3 * kShapeTypeSpacing, |
20 kLabelSpacing = 3 * kShapeSize, | 19 kLabelSpacing = 3 * kShapeSize, |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 | 261 |
263 typedef GM INHERITED; | 262 typedef GM INHERITED; |
264 }; | 263 }; |
265 | 264 |
266 ////////////////////////////////////////////////////////////////////////////// | 265 ////////////////////////////////////////////////////////////////////////////// |
267 | 266 |
268 static GM* MyFactory(void*) { return new AAXfermodesGM; } | 267 static GM* MyFactory(void*) { return new AAXfermodesGM; } |
269 static GMRegistry reg(MyFactory); | 268 static GMRegistry reg(MyFactory); |
270 | 269 |
271 } | 270 } |
OLD | NEW |