#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"
this->fYInset == s.fYInset);
}
+#endif
+
////////////////////////////////////////////////////////////////////////////////
SkMagnifierImageFilter::SkMagnifierImageFilter(SkFlattenableReadBuffer& buffer)
: INHERITED(buffer) {
bool SkMagnifierImageFilter::asNewCustomStage(GrCustomStage** stage,
GrTexture* texture) const {
+#if SK_SUPPORT_GPU
if (stage) {
*stage =
SkNEW_ARGS(GrMagnifierEffect, (texture,
fInset / texture->height()));
}
return true;
+#else
+ return false;
+#endif
}
void SkMagnifierImageFilter::flatten(SkFlattenableWriteBuffer& buffer) const {