| 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 "SkMorphologyImageFilter.h" | 15 #include "SkMorphologyImageFilter.h" |
| 16 #include "SkColorFilterImageFilter.h" | 16 #include "SkColorFilterImageFilter.h" |
| 17 #include "SkBitmapSource.h" | |
| 18 #include "SkMergeImageFilter.h" | 17 #include "SkMergeImageFilter.h" |
| 19 #include "SkOffsetImageFilter.h" | 18 #include "SkOffsetImageFilter.h" |
| 20 #include "SkTestImageFilters.h" | 19 #include "SkTestImageFilters.h" |
| 21 | 20 |
| 22 /////////////////////////////////////////////////////////////////////////////// | 21 /////////////////////////////////////////////////////////////////////////////// |
| 23 | 22 |
| 24 static void draw_paint(SkCanvas* canvas, const SkRect& r, SkImageFilter* imf) { | 23 static void draw_paint(SkCanvas* canvas, const SkRect& r, SkImageFilter* imf) { |
| 25 SkPaint paint; | 24 SkPaint paint; |
| 26 paint.setImageFilter(imf); | 25 paint.setImageFilter(imf); |
| 27 paint.setColor(SK_ColorBLACK); | 26 paint.setColor(SK_ColorBLACK); |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 | 192 |
| 194 private: | 193 private: |
| 195 SkBitmap fCheckerboard; | 194 SkBitmap fCheckerboard; |
| 196 typedef GM INHERITED; | 195 typedef GM INHERITED; |
| 197 }; | 196 }; |
| 198 | 197 |
| 199 /////////////////////////////////////////////////////////////////////////////// | 198 /////////////////////////////////////////////////////////////////////////////// |
| 200 | 199 |
| 201 static skiagm::GM* MyFactory(void*) { return new ImageFiltersCroppedGM; } | 200 static skiagm::GM* MyFactory(void*) { return new ImageFiltersCroppedGM; } |
| 202 static skiagm::GMRegistry reg(MyFactory); | 201 static skiagm::GMRegistry reg(MyFactory); |
| OLD | NEW |