| 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 "SkCanvas.h" | 9 #include "SkCanvas.h" |
| 10 #include "SkColorFilter.h" | 10 #include "SkColorFilter.h" |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 SkIntToScalar(10), | 100 SkIntToScalar(10), |
| 101 SkIntToScalar(10), | 101 SkIntToScalar(10), |
| 102 SkIntToScalar(3), | 102 SkIntToScalar(3), |
| 103 SkIntToScalar(3), | 103 SkIntToScalar(3), |
| 104 SK_ColorBLUE, | 104 SK_ColorBLUE, |
| 105 SkDropShadowImageFilter::kDrawShadowAndForeg
round_ShadowMode, | 105 SkDropShadowImageFilter::kDrawShadowAndForeg
round_ShadowMode, |
| 106 noopCropped, | 106 noopCropped, |
| 107 &bigRect)); | 107 &bigRect)); |
| 108 | 108 |
| 109 Draw(canvas, checkerboard, rect, | 109 Draw(canvas, checkerboard, rect, |
| 110 sk_sp<SkImageFilter>(SkDisplacementMapEffect::Create( | 110 SkDisplacementMapEffect::Make(SkDisplacementMapEffect::kR_Chann
elSelectorType, |
| 111 SkDisplacementMapEffect::kR_Chan
nelSelectorType, | 111 SkDisplacementMapEffect::kR_Chann
elSelectorType, |
| 112 SkDisplacementMapEffect::kR_Chan
nelSelectorType, | 112 SkIntToScalar(12), |
| 113 SkIntToScalar(12), | 113 gradientCircleSource, |
| 114 gradientCircleSource.get(), | 114 noopCropped, |
| 115 noopCropped.get(), | 115 &bigRect)); |
| 116 &bigRect))); | |
| 117 | 116 |
| 118 Draw(canvas, checkerboard, rect, | 117 Draw(canvas, checkerboard, rect, |
| 119 SkOffsetImageFilter::Make(SkIntToScalar(-8), SkIntToScalar(16), | 118 SkOffsetImageFilter::Make(SkIntToScalar(-8), SkIntToScalar(16), |
| 120 noopCropped, | 119 noopCropped, |
| 121 &bigRect)); | 120 &bigRect)); |
| 122 | 121 |
| 123 Draw(canvas, checkerboard, rect, | 122 Draw(canvas, checkerboard, rect, |
| 124 SkLightingImageFilter::MakePointLitDiffuse(pointLocation, | 123 SkLightingImageFilter::MakePointLitDiffuse(pointLocation, |
| 125 SK_ColorWHITE, | 124 SK_ColorWHITE, |
| 126 surfaceScale, | 125 surfaceScale, |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 187 |
| 189 canvas->translate(SkIntToScalar(80), 0); | 188 canvas->translate(SkIntToScalar(80), 0); |
| 190 } | 189 } |
| 191 | 190 |
| 192 typedef GM INHERITED; | 191 typedef GM INHERITED; |
| 193 }; | 192 }; |
| 194 | 193 |
| 195 /////////////////////////////////////////////////////////////////////////////// | 194 /////////////////////////////////////////////////////////////////////////////// |
| 196 | 195 |
| 197 DEF_GM( return new ImageFiltersCropExpandGM; ) | 196 DEF_GM( return new ImageFiltersCropExpandGM; ) |
| OLD | NEW |