Fix GPU-less build from r5056.
git-svn-id: http://skia.googlecode.com/svn/trunk@5058 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/effects/SkMagnifierImageFilter.cpp b/src/effects/SkMagnifierImageFilter.cpp
index dbd9135..eebfa48 100644
--- a/src/effects/SkMagnifierImageFilter.cpp
+++ b/src/effects/SkMagnifierImageFilter.cpp
@@ -9,11 +9,11 @@
#include "SkMagnifierImageFilter.h"
#include "SkColorPriv.h"
#include "SkFlattenableBuffers.h"
-#include "gl/GrGLTexture.h"
#include <algorithm>
////////////////////////////////////////////////////////////////////////////////
+#if SK_SUPPORT_GPU
#include "effects/GrSingleTextureEffect.h"
#include "gl/GrGLProgramStage.h"
#include "gl/GrGLSL.h"
@@ -226,6 +226,8 @@
this->fYInset == s.fYInset);
}
+#endif
+
////////////////////////////////////////////////////////////////////////////////
SkMagnifierImageFilter::SkMagnifierImageFilter(SkFlattenableReadBuffer& buffer)
: INHERITED(buffer) {
@@ -244,6 +246,7 @@
bool SkMagnifierImageFilter::asNewCustomStage(GrCustomStage** stage,
GrTexture* texture) const {
+#if SK_SUPPORT_GPU
if (stage) {
*stage =
SkNEW_ARGS(GrMagnifierEffect, (texture,
@@ -255,6 +258,9 @@
fInset / texture->height()));
}
return true;
+#else
+ return false;
+#endif
}
void SkMagnifierImageFilter::flatten(SkFlattenableWriteBuffer& buffer) const {