aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core
diff options
context:
space:
mode:
Diffstat (limited to 'include/core')
-rw-r--r--include/core/SkImageFilter.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/core/SkImageFilter.h b/include/core/SkImageFilter.h
index f0ab16017c..beccc80205 100644
--- a/include/core/SkImageFilter.h
+++ b/include/core/SkImageFilter.h
@@ -14,6 +14,7 @@
#include "SkColorSpace.h"
#include "SkFilterQuality.h"
#include "SkFlattenable.h"
+#include "SkImageInfo.h"
#include "SkMatrix.h"
#include "SkRect.h"
@@ -41,11 +42,14 @@ public:
// consumer of the DAG's output.
class OutputProperties {
public:
- explicit OutputProperties(SkColorSpace* colorSpace) : fColorSpace(colorSpace) {}
+ explicit OutputProperties(SkColorType colorType, SkColorSpace* colorSpace)
+ : fColorType(colorType), fColorSpace(colorSpace) {}
+ SkColorType colorType() const { return fColorType; }
SkColorSpace* colorSpace() const { return fColorSpace; }
private:
+ SkColorType fColorType;
// This will be a pointer to the device's color space, and our lifetime is bounded by
// the device, so we can store a bare pointer.
SkColorSpace* fColorSpace;