Index: src/core/SkPictureImageGenerator.cpp |
diff --git a/src/core/SkPictureImageGenerator.cpp b/src/core/SkPictureImageGenerator.cpp |
index db192a36e227e139828ea6c30848077c914707e1..67834876ca4761f71fc40f63008d8d85d3537e86 100644 |
--- a/src/core/SkPictureImageGenerator.cpp |
+++ b/src/core/SkPictureImageGenerator.cpp |
@@ -5,6 +5,7 @@ |
* found in the LICENSE file. |
*/ |
+#include "SkImage_Base.h" |
#include "SkImageGenerator.h" |
#include "SkCanvas.h" |
#include "SkMatrix.h" |
@@ -154,6 +155,6 @@ GrTexture* SkPictureImageGenerator::onGenerateTexture(GrContext* ctx, const SkIR |
if (!image.get()) { |
return nullptr; |
} |
- return SkSafeRef(image->getTexture()); |
+ return SkSafeRef(as_IB(image)->peekTexture()); |
} |
#endif |