Index: src/image/SkImagePriv.h |
diff --git a/src/image/SkImagePriv.h b/src/image/SkImagePriv.h |
index 876c4279b6ebaca031ad190a82b59dc41421f8f7..0626d6a3ce72348934e52cab3f5e1d620a0a9f33 100644 |
--- a/src/image/SkImagePriv.h |
+++ b/src/image/SkImagePriv.h |
@@ -39,8 +39,12 @@ enum SharedPixelRefMode { |
kLocked_SharedPixelRefMode, |
kUnlocked_SharedPixelRefMode |
}; |
-extern SkImage* SkNewImageFromRasterBitmap(const SkBitmap&, bool forceSharePixelRef, |
- const SkSurfaceProps*, SharedPixelRefMode); |
+enum ForceCopyMode { |
+ kNo_ForceCopyMode, |
+ kYes_ForceCopyMode, // must copy the pixels even if the bitmap is immutable |
+}; |
+extern SkImage* SkNewImageFromRasterBitmap(const SkBitmap&, const SkSurfaceProps*, |
+ SharedPixelRefMode, ForceCopyMode = kNo_ForceCopyMode); |
static inline size_t SkImageMinRowBytes(const SkImageInfo& info) { |
size_t minRB = info.minRowBytes(); |