Index: src/core/SkBitmap.cpp |
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp |
index 1691c9d0afd68898371344898a96162cd8469bdc..e8a235597dfb182738b48bb5a705956bdff1bbea 100644 |
--- a/src/core/SkBitmap.cpp |
+++ b/src/core/SkBitmap.cpp |
@@ -372,6 +372,12 @@ bool SkBitmap::installPixels(const SkImageInfo& requestedInfo, void* pixels, siz |
return true; |
} |
+bool SkBitmap::installPixels(const SkPixmap& pixmap) { |
+ return this->installPixels(pixmap.info(), pixmap.writable_addr(), |
+ pixmap.rowBytes(), pixmap.ctable(), |
+ nullptr, nullptr); |
+} |
+ |
bool SkBitmap::installMaskPixels(const SkMask& mask) { |
if (SkMask::kA8_Format != mask.fFormat) { |
this->reset(); |