clean up SK_LEGACY_LOWP_STAGES
Change-Id: I5629e74c4c13ddb9217fd3c2df3388030fa03f0c Reviewed-on: https://skia-review.googlesource.com/63780 Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Mike Klein <mtklein@chromium.org>
This commit is contained in:
parent
29b60c9020
commit
a511553620
@ -305,15 +305,6 @@ void SkRasterPipelineBlitter::blitRect(int x, int y, int w, int h) {
|
||||
if (!fBlitRect) {
|
||||
SkRasterPipeline p(fAlloc);
|
||||
p.extend(fColorPipeline);
|
||||
#if defined(SK_LEGACY_LOWP_STAGES)
|
||||
if (fBlend == SkBlendMode::kSrcOver
|
||||
&& fDst.info().colorType() == kRGBA_8888_SkColorType
|
||||
&& !fDst.colorSpace()
|
||||
&& fDst.info().alphaType() != kUnpremul_SkAlphaType
|
||||
&& fDitherRate == 0.0f) {
|
||||
p.clamp_if_unclamped(kPremul_SkAlphaType);
|
||||
p.append(SkRasterPipeline::srcover_rgba_8888, &fDstPtr);
|
||||
#else
|
||||
if (fBlend == SkBlendMode::kSrcOver
|
||||
&& (fDst.info().colorType() == kRGBA_8888_SkColorType ||
|
||||
fDst.info().colorType() == kBGRA_8888_SkColorType)
|
||||
@ -325,7 +316,6 @@ void SkRasterPipelineBlitter::blitRect(int x, int y, int w, int h) {
|
||||
? SkRasterPipeline::srcover_rgba_8888
|
||||
: SkRasterPipeline::srcover_bgra_8888;
|
||||
p.append(stage, &fDstPtr);
|
||||
#endif
|
||||
} else {
|
||||
if (fBlend != SkBlendMode::kSrc) {
|
||||
this->append_load_dst(&p);
|
||||
|
@ -228,13 +228,9 @@ extern "C" {
|
||||
LOWP(exclusion)
|
||||
LOWP(hardlight)
|
||||
LOWP(overlay)
|
||||
#if defined(SK_LEGACY_LOWP_STAGES)
|
||||
LOWP(seed_shader) LOWP(matrix_2x3) LOWP(gather_8888)
|
||||
#else
|
||||
LOWP(seed_shader)
|
||||
LOWP(matrix_translate) LOWP(matrix_scale_translate) LOWP(matrix_2x3) LOWP(matrix_perspective)
|
||||
LOWP(gather_8888) LOWP(gather_bgra) LOWP(gather_565) LOWP(gather_a8) LOWP(gather_g8)
|
||||
#endif
|
||||
#undef LOWP
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user