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

Unified Diff: src/core/SkPMFloat.h

Issue 1288323004: Patches on top of Radu's latest. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: const Created 5 years, 4 months 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
Index: src/core/SkPMFloat.h
diff --git a/src/core/SkPMFloat.h b/src/core/SkPMFloat.h
index f97f25c9c6edf36198805b04269b6496a540c173..1fc80f50044adc756543d944531db03c695a296c 100644
--- a/src/core/SkPMFloat.h
+++ b/src/core/SkPMFloat.h
@@ -26,6 +26,7 @@ class SkPMFloat : public Sk4f {
public:
static SkPMFloat FromPMColor(SkPMColor c) { return SkPMFloat(c); }
static SkPMFloat FromARGB(float a, float r, float g, float b) { return SkPMFloat(a,r,g,b); }
+ static SkPMFloat FromBGRx(SkColor c); // Ignores c's alpha, instead forcing it to 1.
Noel Gordon 2015/08/19 01:02:59 The CL lacks a decent description, imho. We could
mtklein 2015/08/19 01:58:22 Have we not got all that context over at 127303300
Sk4f alphas() const; // argb -> aaaa, generally faster than the equivalent Sk4f(this->a()).

Powered by Google App Engine
This is Rietveld 408576698