Fix SkPixelXorXfermode serialization bug

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1647963002

Review URL: https://codereview.chromium.org/1647963002
This commit is contained in:
robertphillips 2016-01-28 08:50:26 -08:00 committed by Commit bot
parent 7579786f3b
commit 5381b81af2

View File

@ -21,7 +21,9 @@ SkPMColor SkPixelXorXfermode::xferColor(SkPMColor src, SkPMColor dst) const {
}
void SkPixelXorXfermode::flatten(SkWriteBuffer& wb) const {
wb.writeColor(fOpColor);
wb.writeColor(SkColorSetRGB(SkGetPackedR32(fOpColor),
SkGetPackedG32(fOpColor),
SkGetPackedB32(fOpColor)));
}
SkFlattenable* SkPixelXorXfermode::CreateProc(SkReadBuffer& buffer) {