Index: src/effects/SkLightingImageFilter.cpp |
diff --git a/src/effects/SkLightingImageFilter.cpp b/src/effects/SkLightingImageFilter.cpp |
index d9b29363ed5a692dd2494b6e8a1902b5fe0551c3..7f4dcfdf03416f6c4bfe0107ae3507886604d5a6 100644 |
--- a/src/effects/SkLightingImageFilter.cpp |
+++ b/src/effects/SkLightingImageFilter.cpp |
@@ -415,11 +415,11 @@ sk_sp<SkSpecialImage> SkLightingImageFilterInternal::filterImageGPU(SkSpecialIma |
return nullptr; |
} |
- SkRect dstRect = SkRect::MakeWH(SkIntToScalar(offsetBounds.width()), |
- SkIntToScalar(offsetBounds.height())); |
+ SkIRect dstIRect = SkIRect::MakeWH(offsetBounds.width(), offsetBounds.height()); |
+ SkRect dstRect = SkRect::Make(dstIRect); |
// setup new clip |
- GrClip clip(dstRect); |
+ GrFixedClip clip(dstIRect); |
const SkIRect inputBounds = SkIRect::MakeWH(input->width(), input->height()); |
SkRect topLeft = SkRect::MakeXYWH(0, 0, 1, 1); |