| 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" |
| 10 #include "SkShader.h" | 11 #include "SkShader.h" |
| 11 #include "SkXfermode.h" | 12 #include "SkXfermode.h" |
| 12 | 13 |
| 13 enum { | 14 enum { |
| 14 kXfermodeCount = SkXfermode::kLastMode + 2, // All xfermodes plus arithmetic
mode. | 15 kXfermodeCount = SkXfermode::kLastMode + 2, // All xfermodes plus arithmetic
mode. |
| 15 kShapeSize = 22, | 16 kShapeSize = 22, |
| 16 kShapeSpacing = 36, | 17 kShapeSpacing = 36, |
| 17 kShapeTypeSpacing = 4 * kShapeSpacing / 3, | 18 kShapeTypeSpacing = 4 * kShapeSpacing / 3, |
| 18 kPaintSpacing = 3 * kShapeTypeSpacing, | 19 kPaintSpacing = 3 * kShapeTypeSpacing, |
| 19 kLabelSpacing = 3 * kShapeSize, | 20 kLabelSpacing = 3 * kShapeSize, |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 | 262 |
| 262 typedef GM INHERITED; | 263 typedef GM INHERITED; |
| 263 }; | 264 }; |
| 264 | 265 |
| 265 ////////////////////////////////////////////////////////////////////////////// | 266 ////////////////////////////////////////////////////////////////////////////// |
| 266 | 267 |
| 267 static GM* MyFactory(void*) { return new AAXfermodesGM; } | 268 static GM* MyFactory(void*) { return new AAXfermodesGM; } |
| 268 static GMRegistry reg(MyFactory); | 269 static GMRegistry reg(MyFactory); |
| 269 | 270 |
| 270 } | 271 } |
| OLD | NEW |