Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7cc6ec2c authored by Doris Liu's avatar Doris Liu
Browse files

Fix regressed alpha change in VD

BUG: 116355161
Test: cts-tradefed run commandAndExit cts -d --skip-preconditions --test android.graphics.drawable.cts.VectorDrawableTest --module CtsGraphicsTestCases

Change-Id: I4d1bc13d8544d0fc64c5457f8a70c3089a9334c1
parent 72555cca
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -470,10 +470,10 @@ void Tree::drawStaging(Canvas* outCanvas) {
void Tree::getPaintFor(SkPaint* outPaint, const TreeProperties &prop) const {
    // HWUI always draws VD with bilinear filtering.
    outPaint->setFilterQuality(kLow_SkFilterQuality);
    if (prop.getRootAlpha() < 1.0f || prop.getColorFilter() != nullptr) {
    if (prop.getColorFilter() != nullptr) {
        outPaint->setColorFilter(sk_ref_sp(prop.getColorFilter()));
        outPaint->setAlpha(prop.getRootAlpha() * 255);
    }
    outPaint->setAlpha(prop.getRootAlpha() * 255);
}

Bitmap& Tree::getBitmapUpdateIfDirty() {