Index: include/gpu/GrColor.h |
diff --git a/include/gpu/GrColor.h b/include/gpu/GrColor.h |
index 98bdb228405d45bc7ce4185976f299c57aee85c6..50a8ec3c0ed7f00d2ae3622aa81ffa6b12bf2f33 100644 |
--- a/include/gpu/GrColor.h |
+++ b/include/gpu/GrColor.h |
@@ -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); |
bsalomon
2014/12/08 20:19:32
GrColorUnpackR, etc?
bsalomon
2014/12/08 20:21:18
Oh i get it, lgtm
|
+ g = SkColorGetG(colorUPM); |
+ b = SkColorGetB(colorUPM); |
+ a = SkColorGetA(colorUPM); |
return GrColorPackRGBA(r, g, b, a); |
} |