From 84a4e5a8d683bf17d6c3058b977b9dfb000428af Mon Sep 17 00:00:00 2001 From: bsalomon Date: Mon, 29 Feb 2016 11:41:52 -0800 Subject: Remove internal calls to SkImage::getTexture BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1744243002 Review URL: https://codereview.chromium.org/1744243002 --- gm/drawbitmaprect.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gm/drawbitmaprect.cpp') 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 { -- cgit v1.2.3