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

Commit 1106b82e authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Reference ctable when adopting pointer in Bitmap"

parents c96468b0 003f1425
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -307,7 +307,7 @@ void Bitmap::reconfigure(const SkImageInfo& newInfo, size_t rowBytes, SkColorTab
    }
    }
    mRowBytes = rowBytes;
    mRowBytes = rowBytes;
    if (mColorTable.get() != ctable) {
    if (mColorTable.get() != ctable) {
        mColorTable.reset(ctable);
        mColorTable.reset(SkSafeRef(ctable));
    }
    }


    // Need to validate the alpha type to filter against the color type
    // Need to validate the alpha type to filter against the color type