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 "SkColorFilter.h" | 10 #include "SkColorFilter.h" |
11 #include "SkColorPriv.h" | 11 #include "SkColorPriv.h" |
12 #include "SkShader.h" | 12 #include "SkShader.h" |
13 | 13 |
14 #include "SkBlurImageFilter.h" | 14 #include "SkBlurImageFilter.h" |
15 #include "SkColorFilterImageFilter.h" | 15 #include "SkColorFilterImageFilter.h" |
16 #include "SkDropShadowImageFilter.h" | 16 #include "SkDropShadowImageFilter.h" |
17 #include "SkSpecialImage.h" | 17 #include "SkSpecialImage.h" |
18 #include "SkTestImageFilters.h" | |
19 | 18 |
20 class FailImageFilter : public SkImageFilter { | 19 class FailImageFilter : public SkImageFilter { |
21 public: | 20 public: |
22 class Registrar { | 21 class Registrar { |
23 public: | 22 public: |
24 Registrar() { | 23 Registrar() { |
25 SkFlattenable::Register("FailImageFilter", | 24 SkFlattenable::Register("FailImageFilter", |
26 FailImageFilter::CreateProc, | 25 FailImageFilter::CreateProc, |
27 FailImageFilter::GetFlattenableType()); | 26 FailImageFilter::GetFlattenableType()); |
28 } | 27 } |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 | 315 |
317 class ImageFiltersText_CF : public ImageFiltersTextBaseGM { | 316 class ImageFiltersText_CF : public ImageFiltersTextBaseGM { |
318 public: | 317 public: |
319 ImageFiltersText_CF() : ImageFiltersTextBaseGM("color") {} | 318 ImageFiltersText_CF() : ImageFiltersTextBaseGM("color") {} |
320 | 319 |
321 void installFilter(SkPaint* paint) override { | 320 void installFilter(SkPaint* paint) override { |
322 paint->setColorFilter(SkColorFilter::MakeModeFilter(SK_ColorBLUE, SkXfer
mode::kSrcIn_Mode)); | 321 paint->setColorFilter(SkColorFilter::MakeModeFilter(SK_ColorBLUE, SkXfer
mode::kSrcIn_Mode)); |
323 } | 322 } |
324 }; | 323 }; |
325 DEF_GM( return new ImageFiltersText_CF; ) | 324 DEF_GM( return new ImageFiltersText_CF; ) |
OLD | NEW |