summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/ImageSource.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/graphics/ImageSource.h')
-rw-r--r--WebCore/platform/graphics/ImageSource.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/WebCore/platform/graphics/ImageSource.h b/WebCore/platform/graphics/ImageSource.h
index 3d96698..29c1be3 100644
--- a/WebCore/platform/graphics/ImageSource.h
+++ b/WebCore/platform/graphics/ImageSource.h
@@ -138,7 +138,17 @@ const int cAnimationNone = -2;
class ImageSource : public Noncopyable {
public:
- ImageSource(bool premultiplyAlpha = true, bool ignoreGammaAndColorProfile = false);
+ enum AlphaOption {
+ AlphaPremultiplied,
+ AlphaNotPremultiplied
+ };
+
+ enum GammaAndColorProfileOption {
+ GammaAndColorProfileApplied,
+ GammaAndColorProfileIgnored
+ };
+
+ ImageSource(AlphaOption alphaOption = AlphaPremultiplied, GammaAndColorProfileOption gammaAndColorProfileOption = GammaAndColorProfileApplied);
~ImageSource();
// Tells the ImageSource that the Image no longer cares about decoded frame
@@ -206,8 +216,8 @@ private:
protected:
#endif
NativeImageSourcePtr m_decoder;
- bool m_premultiplyAlpha;
- bool m_ignoreGammaAndColorProfile;
+ AlphaOption m_alphaOption;
+ GammaAndColorProfileOption m_gammaAndColorProfileOption;
#if ENABLE(IMAGE_DECODER_DOWN_SAMPLING)
static unsigned s_maxPixelsPerDecodedImage;
#endif