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:
parent
bb3bf14ad1
commit
4a0f180211
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user