Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(235)

Unified Diff: include/gpu/GrColor.h

Issue 787713002: Fix GrUnPreMulColor. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698