aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPictureImageGenerator.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-02-29 11:41:52 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-29 11:41:52 -0800
commit84a4e5a8d683bf17d6c3058b977b9dfb000428af (patch)
tree2d1a39c9baee537c1457f03ea1c51d5a911c2432 /src/core/SkPictureImageGenerator.cpp
parent3a9be690772f0417df2abe318c71e9b2fec0f8c5 (diff)
Remove internal calls to SkImage::getTexture
Diffstat (limited to 'src/core/SkPictureImageGenerator.cpp')
-rw-r--r--src/core/SkPictureImageGenerator.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/SkPictureImageGenerator.cpp b/src/core/SkPictureImageGenerator.cpp
index db192a36e2..67834876ca 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