aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkBitmapProvider.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkBitmapProvider.h')
-rw-r--r--src/core/SkBitmapProvider.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/core/SkBitmapProvider.h b/src/core/SkBitmapProvider.h
index fd5b66219e..4437889fb0 100644
--- a/src/core/SkBitmapProvider.h
+++ b/src/core/SkBitmapProvider.h
@@ -13,9 +13,14 @@
class SkBitmapProvider {
public:
- explicit SkBitmapProvider(const SkImage* img) : fImage(img) { SkASSERT(img); }
+ explicit SkBitmapProvider(const SkImage* img, SkDestinationSurfaceColorMode colorMode)
+ : fImage(img)
+ , fColorMode(colorMode) {
+ SkASSERT(img);
+ }
SkBitmapProvider(const SkBitmapProvider& other)
: fImage(other.fImage)
+ , fColorMode(other.fColorMode)
{}
int width() const;
@@ -44,7 +49,8 @@ private:
// SkBitmapProvider is always short-lived/stack allocated, and the source image is guaranteed
// to outlive its scope => we can store a raw ptr to avoid ref churn.
- const SkImage* fImage;
+ const SkImage* fImage;
+ SkDestinationSurfaceColorMode fColorMode;
};
#endif