remove unused flag SK_SUPPORT_LEGACY_COLORFILTER_FILTERSPAN

Bug: skia:
Change-Id: I884f79f9a162f38365930d1ccca889fca2850557
Reviewed-on: https://skia-review.googlesource.com/21202
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
This commit is contained in:
Mike Reed 2017-06-29 08:53:35 -04:00 committed by Skia Commit-Bot
parent bb3bf14ad1
commit 4a0f180211
3 changed files with 0 additions and 7 deletions

View File

@ -795,11 +795,9 @@ bool SkBlitter::UseRasterPipelineBlitter(const SkPixmap& device, const SkPaint&
if (paint.getShader() && as_SB(paint.getShader())->isRasterPipelineOnly()) {
return true;
}
#ifndef SK_SUPPORT_LEGACY_COLORFILTER_FILTERSPAN
if (paint.getColorFilter()) {
return true;
}
#endif
#ifndef SK_SUPPORT_LEGACY_HQ_SCALER
if (paint.getFilterQuality() == kHigh_SkFilterQuality) {
return true;

View File

@ -185,11 +185,9 @@ SkBlitter* SkBlitter::ChooseSprite(const SkPixmap& dst, const SkPaint& paint,
if (source.alphaType() == kUnpremul_SkAlphaType) {
return nullptr;
}
#ifndef SK_SUPPORT_LEGACY_COLORFILTER_FILTERSPAN
if (paint.getColorFilter()) {
return nullptr;
}
#endif
SkSpriteBlitter* blitter = nullptr;

View File

@ -52,10 +52,7 @@ protected:
bool onAppendStages(SkRasterPipeline*, SkColorSpace* dstCS, SkArenaAlloc*,
const SkMatrix&, const SkPaint&, const SkMatrix* localM) const override;
bool isRasterPipelineOnly() const override {
#ifndef SK_SUPPORT_LEGACY_COLORFILTER_FILTERSPAN
return true;
#endif
return as_SB(fShader)->isRasterPipelineOnly();
}
private: