Index: include/effects/SkXfermodeImageFilter.h |
diff --git a/include/effects/SkXfermodeImageFilter.h b/include/effects/SkXfermodeImageFilter.h |
index 4a5d7fa8c5e4dd4cdeeaa27e61df02d1cf57ed92..6343c4b575f13aed4cb9f43ce8e859af3850d726 100644 |
--- a/include/effects/SkXfermodeImageFilter.h |
+++ b/include/effects/SkXfermodeImageFilter.h |
@@ -22,7 +22,7 @@ class SK_API SkXfermodeImageFilter : public SkImageFilter { |
public: |
SkXfermodeImageFilter(SkXfermode* mode, SkImageFilter* background, |
- SkImageFilter* foreground = NULL, const SkIRect* cropRect = NULL); |
+ SkImageFilter* foreground = NULL, const CropRect* cropRect = NULL); |
virtual ~SkXfermodeImageFilter(); |
@@ -34,7 +34,7 @@ public: |
SkBitmap* dst, |
SkIPoint* offset) SK_OVERRIDE; |
#if SK_SUPPORT_GPU |
- virtual bool canFilterImageGPU() const SK_OVERRIDE { return cropRect().isLargest(); } |
+ virtual bool canFilterImageGPU() const SK_OVERRIDE { return !cropRectIsSet(); } |
virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, const SkMatrix& ctm, |
SkBitmap* result, SkIPoint* offset) SK_OVERRIDE; |
#endif |