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 "sk_tool_utils.h" | 8 #include "sk_tool_utils.h" |
9 #include "SkBlurImageFilter.h" | 9 #include "SkBlurImageFilter.h" |
10 #include "SkColor.h" | 10 #include "SkColor.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 SkDisplacementMapEffect::Create(SkDisplacementMapEffect::kR_ChannelS
electorType, | 78 SkDisplacementMapEffect::Create(SkDisplacementMapEffect::kR_ChannelS
electorType, |
79 SkDisplacementMapEffect::kR_ChannelS
electorType, | 79 SkDisplacementMapEffect::kR_ChannelS
electorType, |
80 SkIntToScalar(12), | 80 SkIntToScalar(12), |
81 gradient.get(), | 81 gradient.get(), |
82 checkerboard.get()), | 82 checkerboard.get()), |
83 SkDilateImageFilter::Create(1, 1, checkerboard.get()), | 83 SkDilateImageFilter::Create(1, 1, checkerboard.get()), |
84 SkErodeImageFilter::Create(1, 1, checkerboard.get()), | 84 SkErodeImageFilter::Create(1, 1, checkerboard.get()), |
85 SkOffsetImageFilter::Create(SkIntToScalar(32), 0), | 85 SkOffsetImageFilter::Create(SkIntToScalar(32), 0), |
86 SkImageFilter::CreateMatrixFilter(resizeMatrix, kNone_SkFilterQualit
y), | 86 SkImageFilter::CreateMatrixFilter(resizeMatrix, kNone_SkFilterQualit
y), |
87 SkRectShaderImageFilter::Create(noise), | 87 SkRectShaderImageFilter::Create(noise), |
88 SkLightingImageFilter::CreatePointLitDiffuse(pointLocation, white, s
urfaceScale, kd), | 88 SkLightingImageFilter::CreatePointLitDiffuse(pointLocation, white, s
urfaceScale, kd, NULL, NULL), |
89 SkLightingImageFilter::CreateSpotLitDiffuse(spotLocation, spotTarget
, spotExponent, | 89 SkLightingImageFilter::CreateSpotLitDiffuse(spotLocation, spotTarget
, spotExponent, |
90 cutoffAngle, white, surf
aceScale, kd), | 90 cutoffAngle, white, surf
aceScale, kd, NULL, NULL), |
91 }; | 91 }; |
92 | 92 |
93 SkVector scales[] = { | 93 SkVector scales[] = { |
94 SkVector::Make(SkScalarInvert(2), SkScalarInvert(2)), | 94 SkVector::Make(SkScalarInvert(2), SkScalarInvert(2)), |
95 SkVector::Make(SkIntToScalar(1), SkIntToScalar(1)), | 95 SkVector::Make(SkIntToScalar(1), SkIntToScalar(1)), |
96 SkVector::Make(SkIntToScalar(1), SkIntToScalar(2)), | 96 SkVector::Make(SkIntToScalar(1), SkIntToScalar(2)), |
97 SkVector::Make(SkIntToScalar(2), SkIntToScalar(1)), | 97 SkVector::Make(SkIntToScalar(2), SkIntToScalar(1)), |
98 SkVector::Make(SkIntToScalar(2), SkIntToScalar(2)), | 98 SkVector::Make(SkIntToScalar(2), SkIntToScalar(2)), |
99 }; | 99 }; |
100 | 100 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 156 |
157 SkAutoTUnref<SkImage> fCheckerboard, fGradientCircle; | 157 SkAutoTUnref<SkImage> fCheckerboard, fGradientCircle; |
158 | 158 |
159 typedef GM INHERITED; | 159 typedef GM INHERITED; |
160 }; | 160 }; |
161 | 161 |
162 ////////////////////////////////////////////////////////////////////////////// | 162 ////////////////////////////////////////////////////////////////////////////// |
163 | 163 |
164 DEF_GM(return new ImageFiltersScaledGM;) | 164 DEF_GM(return new ImageFiltersScaledGM;) |
165 } | 165 } |
OLD | NEW |