Fix GrUnPreMulColor.
Current version incorrectly unpacked the resulting sk unpremulled color into rgba. BUG=skia:3208 Review URL: https://codereview.chromium.org/787713002
This commit is contained in:
parent
266b2adce7
commit
4ccf0b9405
@ -111,10 +111,10 @@ static inline GrColor GrUnPreMulColor(GrColor color) {
|
||||
SkPMColor colorPM = SkPackARGB32(a, r, g, b);
|
||||
SkColor colorUPM = SkUnPreMultiply::PMColorToColor(colorPM);
|
||||
|
||||
r = SkGetPackedR32(colorUPM);
|
||||
g = SkGetPackedG32(colorUPM);
|
||||
b = SkGetPackedB32(colorUPM);
|
||||
a = SkGetPackedA32(colorUPM);
|
||||
r = SkColorGetR(colorUPM);
|
||||
g = SkColorGetG(colorUPM);
|
||||
b = SkColorGetB(colorUPM);
|
||||
a = SkColorGetA(colorUPM);
|
||||
|
||||
return GrColorPackRGBA(r, g, b, a);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user