| 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 "SkTArray.h" | 9 #include "SkTArray.h" |
| 10 #include "SkRandom.h" | 10 #include "SkRandom.h" |
| 11 #include "SkMatrix.h" | 11 #include "SkMatrix.h" |
| 12 #include "SkBlurMaskFilter.h" | 12 #include "SkBlurMaskFilter.h" |
| 13 #include "SkColorFilter.h" |
| 13 #include "SkGradientShader.h" | 14 #include "SkGradientShader.h" |
| 14 #include "SkBlurDrawLooper.h" | 15 #include "SkBlurDrawLooper.h" |
| 15 #include "SkRect.h" | 16 #include "SkRect.h" |
| 16 #include "SkRRect.h" | 17 #include "SkRRect.h" |
| 17 | 18 |
| 18 namespace skiagm { | 19 namespace skiagm { |
| 19 | 20 |
| 20 static SkColor gen_color(SkRandom* rand) { | 21 static SkColor gen_color(SkRandom* rand) { |
| 21 SkScalar hsv[3]; | 22 SkScalar hsv[3]; |
| 22 hsv[0] = rand->nextRangeF(0.0f, 360.0f); | 23 hsv[0] = rand->nextRangeF(0.0f, 360.0f); |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 | 345 |
| 345 typedef GM INHERITED; | 346 typedef GM INHERITED; |
| 346 }; | 347 }; |
| 347 | 348 |
| 348 ////////////////////////////////////////////////////////////////////////////// | 349 ////////////////////////////////////////////////////////////////////////////// |
| 349 | 350 |
| 350 static GM* MyFactory(void*) { return new RoundRectGM; } | 351 static GM* MyFactory(void*) { return new RoundRectGM; } |
| 351 static GMRegistry reg(MyFactory); | 352 static GMRegistry reg(MyFactory); |
| 352 | 353 |
| 353 } | 354 } |
| OLD | NEW |