Index: src/core/SkBitmapController.h |
diff --git a/src/core/SkBitmapController.h b/src/core/SkBitmapController.h |
index 435d9e72aff83456f76e6d7511ed0462cb3124c3..e6c4443872eaf0faddee6f8b8e1a9f0d206bb3bc 100644 |
--- a/src/core/SkBitmapController.h |
+++ b/src/core/SkBitmapController.h |
@@ -16,8 +16,12 @@ |
class SkBitmapProvider { |
public: |
- SkBitmapProvider(const SkBitmap& bm) : fBitmap(bm) {} |
- SkBitmapProvider(const SkImage* img) : fImage(SkRef(img)) {} |
+ explicit SkBitmapProvider(const SkBitmap& bm) : fBitmap(bm) {} |
+ explicit SkBitmapProvider(const SkImage* img) : fImage(SkSafeRef(img)) {} |
+ SkBitmapProvider(const SkBitmapProvider& other) |
+ : fBitmap(other.fBitmap) |
+ , fImage(SkSafeRef(other.fImage.get())) |
+ {} |
int width() const; |
int height() const; |