Index: include/effects/SkXfermodeImageFilter.h |
diff --git a/include/effects/SkXfermodeImageFilter.h b/include/effects/SkXfermodeImageFilter.h |
index a5404f91c584737a4137df68f843da82b58977a1..05f96c49112760dc94a2626464a1975dc5be72f4 100644 |
--- a/include/effects/SkXfermodeImageFilter.h |
+++ b/include/effects/SkXfermodeImageFilter.h |
@@ -26,7 +26,8 @@ public: |
static SkXfermodeImageFilter* Create(SkXfermode* mode, SkImageFilter* background, |
SkImageFilter* foreground = NULL, |
const CropRect* cropRect = NULL) { |
- return SkNEW_ARGS(SkXfermodeImageFilter, (mode, background, foreground, cropRect)); |
+ SkImageFilter* inputs[2] = { background, foreground }; |
+ return SkNEW_ARGS(SkXfermodeImageFilter, (mode, inputs, cropRect)); |
} |
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkXfermodeImageFilter) |
@@ -43,8 +44,8 @@ public: |
#endif |
protected: |
- SkXfermodeImageFilter(SkXfermode* mode, SkImageFilter* background, |
- SkImageFilter* foreground, const CropRect* cropRect); |
+ SkXfermodeImageFilter(SkXfermode* mode, SkImageFilter* inputs[2], |
+ const CropRect* cropRect); |
explicit SkXfermodeImageFilter(SkReadBuffer& buffer); |
virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE; |