robertphillips 2016-04-10 14:04:19 -07:00 committed by Commit bot
parent d58f840650
commit 82b043e873
2 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,7 @@ public:
const SkPoint3& target, SkScalar specularExponent, SkScalar cutoffAngle,
SkColor lightColor, SkScalar surfaceScale, SkScalar ks,
SkScalar shininess, sk_sp<SkImageFilter> input, const CropRect* cropRect = nullptr);
~SkLightingImageFilter() override;
SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP()

View File

@ -1110,6 +1110,8 @@ SkLightingImageFilter::SkLightingImageFilter(sk_sp<SkImageFilterLight> light,
, fSurfaceScale(surfaceScale / 255) {
}
SkLightingImageFilter::~SkLightingImageFilter() {}
sk_sp<SkImageFilter> SkLightingImageFilter::MakeDistantLitDiffuse(const SkPoint3& direction,
SkColor lightColor,
SkScalar surfaceScale,