Index: src/image/SkImage.cpp |
diff --git a/src/image/SkImage.cpp b/src/image/SkImage.cpp |
index 241904b3a3d8bc68fee5f4537b8a1469952dd381..9c996dc7b836c8124c8d6af803d6bf1150f72668 100644 |
--- a/src/image/SkImage.cpp |
+++ b/src/image/SkImage.cpp |
@@ -279,6 +279,14 @@ bool SkImage_Base::onAsLegacyBitmap(SkBitmap* bitmap, LegacyBitmapMode mode) con |
return true; |
} |
+SkImage* SkImage::NewFromPicture(const SkPicture* picture, const SkISize& dimensions, |
+ const SkMatrix* matrix, const SkPaint* paint) { |
+ if (!picture) { |
+ return nullptr; |
+ } |
+ return NewFromGenerator(SkImageGenerator::NewFromPicture(dimensions, picture, matrix, paint)); |
+} |
+ |
////////////////////////////////////////////////////////////////////////////////////// |
#if !SK_SUPPORT_GPU |