| 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 "SkBitmapSource.h" | 9 #include "SkBitmapSource.h" |
| 10 #include "SkBlurImageFilter.h" | 10 #include "SkBlurImageFilter.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 SkIntToScalar(3), SkIntToScalar(3), SK_ColorYELLOW, | 93 SkIntToScalar(3), SkIntToScalar(3), SK_ColorYELLOW, |
| 94 SkDropShadowImageFilter::kDrawShadowAndForeground_ShadowMode), | 94 SkDropShadowImageFilter::kDrawShadowAndForeground_ShadowMode), |
| 95 SkDisplacementMapEffect::Create(SkDisplacementMapEffect::kR_ChannelS
electorType, | 95 SkDisplacementMapEffect::Create(SkDisplacementMapEffect::kR_ChannelS
electorType, |
| 96 SkDisplacementMapEffect::kR_ChannelS
electorType, | 96 SkDisplacementMapEffect::kR_ChannelS
electorType, |
| 97 SkIntToScalar(12), | 97 SkIntToScalar(12), |
| 98 gradient.get(), | 98 gradient.get(), |
| 99 checkerboard.get()), | 99 checkerboard.get()), |
| 100 SkDilateImageFilter::Create(1, 1, checkerboard.get()), | 100 SkDilateImageFilter::Create(1, 1, checkerboard.get()), |
| 101 SkErodeImageFilter::Create(1, 1, checkerboard.get()), | 101 SkErodeImageFilter::Create(1, 1, checkerboard.get()), |
| 102 SkOffsetImageFilter::Create(SkIntToScalar(32), 0), | 102 SkOffsetImageFilter::Create(SkIntToScalar(32), 0), |
| 103 SkMatrixImageFilter::Create(resizeMatrix, SkPaint::kNone_FilterLevel
), | 103 SkMatrixImageFilter::Create(resizeMatrix, kNone_SkFilterQuality), |
| 104 SkRectShaderImageFilter::Create(noise), | 104 SkRectShaderImageFilter::Create(noise), |
| 105 SkLightingImageFilter::CreatePointLitDiffuse(pointLocation, white, s
urfaceScale, kd), | 105 SkLightingImageFilter::CreatePointLitDiffuse(pointLocation, white, s
urfaceScale, kd), |
| 106 SkLightingImageFilter::CreateSpotLitDiffuse(spotLocation, spotTarget
, spotExponent, | 106 SkLightingImageFilter::CreateSpotLitDiffuse(spotLocation, spotTarget
, spotExponent, |
| 107 cutoffAngle, white, surf
aceScale, kd), | 107 cutoffAngle, white, surf
aceScale, kd), |
| 108 }; | 108 }; |
| 109 | 109 |
| 110 SkVector scales[] = { | 110 SkVector scales[] = { |
| 111 SkVector::Make(SkScalarInvert(2), SkScalarInvert(2)), | 111 SkVector::Make(SkScalarInvert(2), SkScalarInvert(2)), |
| 112 SkVector::Make(SkIntToScalar(1), SkIntToScalar(1)), | 112 SkVector::Make(SkIntToScalar(1), SkIntToScalar(1)), |
| 113 SkVector::Make(SkIntToScalar(1), SkIntToScalar(2)), | 113 SkVector::Make(SkIntToScalar(1), SkIntToScalar(2)), |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 SkBitmap fGradientCircle; | 155 SkBitmap fGradientCircle; |
| 156 typedef GM INHERITED; | 156 typedef GM INHERITED; |
| 157 }; | 157 }; |
| 158 | 158 |
| 159 ////////////////////////////////////////////////////////////////////////////// | 159 ////////////////////////////////////////////////////////////////////////////// |
| 160 | 160 |
| 161 static GM* MyFactory(void*) { return new ImageFiltersScaledGM; } | 161 static GM* MyFactory(void*) { return new ImageFiltersScaledGM; } |
| 162 static GMRegistry reg(MyFactory); | 162 static GMRegistry reg(MyFactory); |
| 163 | 163 |
| 164 } | 164 } |
| OLD | NEW |