diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-08-13 14:31:30 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-08-13 14:31:30 +0000 |
commit | 03245700d6f1c5db903a2b9ea34e6cc0ce34a185 (patch) | |
tree | a39d18de5bee13607b36ce0d3df0c81317db225e /src | |
parent | bbad34de3b117347bedea619feaf1685586d4202 (diff) |
Fix GPU-less build from r5056.
git-svn-id: http://skia.googlecode.com/svn/trunk@5058 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/effects/SkMagnifierImageFilter.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/effects/SkMagnifierImageFilter.cpp b/src/effects/SkMagnifierImageFilter.cpp index dbd9135891..eebfa489c0 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 @@ bool GrMagnifierEffect::isEqual(const GrCustomStage& sBase) const { this->fYInset == s.fYInset); } +#endif + //////////////////////////////////////////////////////////////////////////////// SkMagnifierImageFilter::SkMagnifierImageFilter(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) { @@ -244,6 +246,7 @@ SkMagnifierImageFilter::SkMagnifierImageFilter(SkRect srcRect, SkScalar inset) bool SkMagnifierImageFilter::asNewCustomStage(GrCustomStage** stage, GrTexture* texture) const { +#if SK_SUPPORT_GPU if (stage) { *stage = SkNEW_ARGS(GrMagnifierEffect, (texture, @@ -255,6 +258,9 @@ bool SkMagnifierImageFilter::asNewCustomStage(GrCustomStage** stage, fInset / texture->height())); } return true; +#else + return false; +#endif } void SkMagnifierImageFilter::flatten(SkFlattenableWriteBuffer& buffer) const { |