| Index: include/effects/SkLightingImageFilter.h
|
| diff --git a/include/effects/SkLightingImageFilter.h b/include/effects/SkLightingImageFilter.h
|
| index e5048eeac75b6f9886f4109ade542f26edd2b68d..bc611c411967c56f6a1c349caa0094b724ad3bcc 100644
|
| --- a/include/effects/SkLightingImageFilter.h
|
| +++ b/include/effects/SkLightingImageFilter.h
|
| @@ -11,37 +11,8 @@
|
| #include "SkImageFilter.h"
|
| #include "SkColor.h"
|
|
|
| -class SK_API SkPoint3 {
|
| -public:
|
| - SkPoint3() {}
|
| - SkPoint3(SkScalar x, SkScalar y, SkScalar z)
|
| - : fX(x), fY(y), fZ(z) {}
|
| - SkScalar dot(const SkPoint3& other) const {
|
| - return fX * other.fX + fY * other.fY + fZ * other.fZ;
|
| - }
|
| - SkScalar maxComponent() const {
|
| - return fX > fY ? (fX > fZ ? fX : fZ) : (fY > fZ ? fY : fZ);
|
| - }
|
| - void normalize() {
|
| - // Small epsilon is added to prevent division by 0.
|
| - SkScalar scale = SkScalarInvert(SkScalarSqrt(dot(*this)) + SK_ScalarNearlyZero);
|
| - fX = fX * scale;
|
| - fY = fY * scale;
|
| - fZ = fZ * scale;
|
| - }
|
| - SkPoint3 operator*(SkScalar scalar) const {
|
| - return SkPoint3(fX * scalar, fY * scalar, fZ * scalar);
|
| - }
|
| - SkPoint3 operator-(const SkPoint3& other) const {
|
| - return SkPoint3(fX - other.fX, fY - other.fY, fZ - other.fZ);
|
| - }
|
| - bool operator==(const SkPoint3& other) const {
|
| - return fX == other.fX && fY == other.fY && fZ == other.fZ;
|
| - }
|
| - SkScalar fX, fY, fZ;
|
| -};
|
| -
|
| class SkLight;
|
| +struct SkPoint3;
|
|
|
| class SK_API SkLightingImageFilter : public SkImageFilter {
|
| public:
|
|
|