| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 "SkBitmapSource.h" | 9 #include "SkBitmapSource.h" |
| 10 #include "SkBlurImageFilter.h" | 10 #include "SkBlurImageFilter.h" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 } | 110 } |
| 111 | 111 |
| 112 { | 112 { |
| 113 static const SkDropShadowImageFilter::ShadowMode kBoth = | 113 static const SkDropShadowImageFilter::ShadowMode kBoth = |
| 114 SkDropShadowImageFilter::kDrawShadowAndForeground_ShadowMode
; | 114 SkDropShadowImageFilter::kDrawShadowAndForeground_ShadowMode
; |
| 115 | 115 |
| 116 SkAutoTUnref<SkDropShadowImageFilter> dsif( | 116 SkAutoTUnref<SkDropShadowImageFilter> dsif( |
| 117 SkDropShadowImageFilter::Create(10.0f, 10.0f, | 117 SkDropShadowImageFilter::Create(10.0f, 10.0f, |
| 118 3.0f, 3.0f, | 118 3.0f, 3.0f, |
| 119 SK_ColorRED, kBoth, | 119 SK_ColorRED, kBoth, |
| 120 source, NULL, 0)); | 120 source, NULL)); |
| 121 | 121 |
| 122 add_paint(dsif, paints); | 122 add_paint(dsif, paints); |
| 123 } | 123 } |
| 124 | 124 |
| 125 { | 125 { |
| 126 SkAutoTUnref<SkDropShadowImageFilter> dsif( | 126 SkAutoTUnref<SkDropShadowImageFilter> dsif( |
| 127 SkDropShadowImageFilter::Create(27.0f, 27.0f, | 127 SkDropShadowImageFilter::Create(27.0f, 27.0f, |
| 128 3.0f, 3.0f, | 128 3.0f, 3.0f, |
| 129 SK_ColorRED, | 129 SK_ColorRED, |
| 130 SkDropShadowImageFilter::kDrawShadow
Only_ShadowMode, | 130 SkDropShadowImageFilter::kDrawShadow
Only_ShadowMode, |
| 131 source, NULL, 0)); | 131 source, NULL)); |
| 132 | 132 |
| 133 add_paint(dsif, paints); | 133 add_paint(dsif, paints); |
| 134 } | 134 } |
| 135 | 135 |
| 136 { | 136 { |
| 137 SkAutoTUnref<SkBlurImageFilter> bif(SkBlurImageFilter::Create(3, 3, sour
ce)); | 137 SkAutoTUnref<SkBlurImageFilter> bif(SkBlurImageFilter::Create(3, 3, sour
ce)); |
| 138 | 138 |
| 139 add_paint(bif, paints); | 139 add_paint(bif, paints); |
| 140 } | 140 } |
| 141 | 141 |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 | 318 |
| 319 private: | 319 private: |
| 320 typedef GM INHERITED; | 320 typedef GM INHERITED; |
| 321 }; | 321 }; |
| 322 | 322 |
| 323 ////////////////////////////////////////////////////////////////////////////// | 323 ////////////////////////////////////////////////////////////////////////////// |
| 324 | 324 |
| 325 DEF_GM(return SkNEW(ImageFilterFastBoundGM);) | 325 DEF_GM(return SkNEW(ImageFilterFastBoundGM);) |
| 326 | 326 |
| 327 } | 327 } |
| OLD | NEW |