Fix GPU-less build. Unreviewed.
authorsenorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 18 Jan 2013 17:32:50 +0000 (17:32 +0000)
committersenorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 18 Jan 2013 17:32:50 +0000 (17:32 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@7276 2bbb7eff-a529-9590-31e7-b0007b416f81

src/effects/SkBicubicImageFilter.cpp

index b02305a..7ebee53 100644 (file)
@@ -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<GrTexture> srcTexture(this->getInputResultAsTexture(proxy, src, rect));
     GrContext* context = srcTexture->getContext();