BackendAllocationTest doesn't need blend for alpha-only color types
Change-Id: I989cae92d24eb487ce5ddf7b0c513982d35bb688 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423998 Commit-Queue: Robert Phillips <robertphillips@google.com> Auto-Submit: Brian Salomon <bsalomon@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
This commit is contained in:
parent
6904303a66
commit
db1748475c
@ -410,14 +410,6 @@ static void check_mipmaps(GrDirectContext* dContext,
|
||||
texMatrix,
|
||||
kNearestNearest,
|
||||
*dstFillContext->caps());
|
||||
// Our swizzles for alpha color types currently produce (a, a, a, a) in the shader. Remove
|
||||
// this once they are correctly (0, 0, 0, a).
|
||||
if (GrColorTypeIsAlphaOnly(colorType)) {
|
||||
auto black = GrFragmentProcessor::MakeColor(SK_PMColor4fBLACK);
|
||||
fp = GrBlendFragmentProcessor::Make(std::move(fp),
|
||||
std::move(black),
|
||||
SkBlendMode::kModulate);
|
||||
}
|
||||
dstFillContext->fillRectWithFP(SkIRect::MakeWH(rectSize, rectSize), std::move(fp));
|
||||
|
||||
SkImageInfo readbackII = SkImageInfo::Make(rectSize, rectSize,
|
||||
|
Loading…
Reference in New Issue
Block a user