| Index: src/effects/SkLightingImageFilter.cpp
|
| diff --git a/src/effects/SkLightingImageFilter.cpp b/src/effects/SkLightingImageFilter.cpp
|
| index d34bd7a5d7fc727a7bd34c277cbd06b67dd02a50..f81cc1c914b7b426e0fe586319ea2d64f2c2593e 100644
|
| --- a/src/effects/SkLightingImageFilter.cpp
|
| +++ b/src/effects/SkLightingImageFilter.cpp
|
| @@ -270,7 +270,7 @@ protected:
|
| virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&,
|
| SkBitmap* result, SkIPoint* offset) SK_OVERRIDE;
|
| #if SK_SUPPORT_GPU
|
| - virtual bool asNewEffect(GrEffectRef** effect, GrTexture*, const SkMatrix& matrix) const SK_OVERRIDE;
|
| + virtual bool asNewEffect(GrEffectRef** effect, GrTexture*, const SkMatrix& matrix, const SkIRect& bounds) const SK_OVERRIDE;
|
| #endif
|
|
|
| private:
|
| @@ -292,7 +292,7 @@ protected:
|
| virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&,
|
| SkBitmap* result, SkIPoint* offset) SK_OVERRIDE;
|
| #if SK_SUPPORT_GPU
|
| - virtual bool asNewEffect(GrEffectRef** effect, GrTexture*, const SkMatrix& matrix) const SK_OVERRIDE;
|
| + virtual bool asNewEffect(GrEffectRef** effect, GrTexture*, const SkMatrix& matrix, const SkIRect& bounds) const SK_OVERRIDE;
|
| #endif
|
|
|
| private:
|
| @@ -957,7 +957,7 @@ bool SkDiffuseLightingImageFilter::onFilterImage(Proxy*,
|
| }
|
|
|
| #if SK_SUPPORT_GPU
|
| -bool SkDiffuseLightingImageFilter::asNewEffect(GrEffectRef** effect, GrTexture* texture, const SkMatrix& matrix) const {
|
| +bool SkDiffuseLightingImageFilter::asNewEffect(GrEffectRef** effect, GrTexture* texture, const SkMatrix& matrix, const SkIRect&) const {
|
| if (effect) {
|
| SkScalar scale = SkScalarMul(surfaceScale(), SkIntToScalar(255));
|
| *effect = GrDiffuseLightingEffect::Create(texture, light(), scale, matrix, kd());
|
| @@ -1033,7 +1033,7 @@ bool SkSpecularLightingImageFilter::onFilterImage(Proxy*,
|
| }
|
|
|
| #if SK_SUPPORT_GPU
|
| -bool SkSpecularLightingImageFilter::asNewEffect(GrEffectRef** effect, GrTexture* texture, const SkMatrix& matrix) const {
|
| +bool SkSpecularLightingImageFilter::asNewEffect(GrEffectRef** effect, GrTexture* texture, const SkMatrix& matrix, const SkIRect&) const {
|
| if (effect) {
|
| SkScalar scale = SkScalarMul(surfaceScale(), SkIntToScalar(255));
|
| *effect = GrSpecularLightingEffect::Create(texture, light(), scale, matrix, ks(), shininess());
|
|
|