aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/drawbitmaprect.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 /gm/drawbitmaprect.cpp
parent3a9be690772f0417df2abe318c71e9b2fec0f8c5 (diff)
Remove internal calls to SkImage::getTexture
Diffstat (limited to 'gm/drawbitmaprect.cpp')
-rw-r--r--gm/drawbitmaprect.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gm/drawbitmaprect.cpp b/gm/drawbitmaprect.cpp
index d4fa141482..c90ac2eaa1 100644
--- a/gm/drawbitmaprect.cpp
+++ b/gm/drawbitmaprect.cpp
@@ -11,6 +11,7 @@
#include "SkColorPriv.h"
#include "SkGradientShader.h"
#include "SkImage.h"
+#include "SkImage_Base.h"
#include "SkShader.h"
#include "SkSurface.h"
@@ -85,9 +86,8 @@ static SkImage* makebm(SkCanvas* origCanvas, SkBitmap* resultBM, int w, int h) {
SkBitmap tempBM;
#if SK_SUPPORT_GPU
- if (image->getTexture()) {
- GrWrapTextureInBitmap(image->getTexture(),
- image->width(), image->height(), image->isOpaque(), &tempBM);
+ if (GrTexture* texture = as_IB(image)->peekTexture()) {
+ GrWrapTextureInBitmap(texture, image->width(), image->height(), image->isOpaque(), &tempBM);
} else
#endif
{