From: senorblanco@chromium.org Date: Fri, 18 Jan 2013 17:32:50 +0000 (+0000) Subject: Fix GPU-less build. Unreviewed. X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~13760 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=92435a43641afcc830200457c269120ec39507be;p=platform%2Fupstream%2FlibSkiaSharp.git Fix GPU-less build. Unreviewed. git-svn-id: http://skia.googlecode.com/svn/trunk@7276 2bbb7eff-a529-9590-31e7-b0007b416f81 --- diff --git a/src/effects/SkBicubicImageFilter.cpp b/src/effects/SkBicubicImageFilter.cpp index b02305a..7ebee53 100644 --- a/src/effects/SkBicubicImageFilter.cpp +++ b/src/effects/SkBicubicImageFilter.cpp @@ -9,6 +9,7 @@ #include "SkBitmap.h" #include "SkColorPriv.h" #include "SkFlattenableBuffers.h" +#include "SkMatrix.h" #include "SkRect.h" #include "SkUnPreMultiply.h" @@ -147,6 +148,8 @@ bool SkBicubicImageFilter::onFilterImage(Proxy* proxy, /////////////////////////////////////////////////////////////////////////////// +#if SK_SUPPORT_GPU + class GrGLBicubicEffect; class GrBicubicEffect : public GrSingleTextureEffect { @@ -333,7 +336,6 @@ GrEffectRef* GrBicubicEffect::TestCreate(SkRandom* random, return GrBicubicEffect::Create(textures[texIdx], coefficients); } -#if SK_SUPPORT_GPU GrTexture* SkBicubicImageFilter::filterImageGPU(Proxy* proxy, GrTexture* src, const SkRect& rect) { SkAutoTUnref srcTexture(this->getInputResultAsTexture(proxy, src, rect)); GrContext* context = srcTexture->getContext();