From af0f6efa3502f03b52747f0ede5399e075dbfe5d Mon Sep 17 00:00:00 2001 From: dvonbeck Date: Fri, 19 Aug 2016 11:23:15 -0700 Subject: Added SkColor4f::FromColor3f(SkColor3f, float a) Planning to use this for the ColorDisplay widget in https://codereview.chromium.org/2259183003/ BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2264643002 Review-Url: https://codereview.chromium.org/2264643002 --- include/core/SkColor.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/core') diff --git a/include/core/SkColor.h b/include/core/SkColor.h index e473db486a..8f2776da61 100644 --- a/include/core/SkColor.h +++ b/include/core/SkColor.h @@ -9,6 +9,7 @@ #define SkColor_DEFINED #include "SkScalar.h" +#include "SkPoint3.h" #include "SkTypes.h" /** \file SkColor.h @@ -183,6 +184,7 @@ struct SkColor4f { static SkColor4f Pin(float r, float g, float b, float a); static SkColor4f FromColor(SkColor); + static SkColor4f FromColor3f(SkColor3f, float a); SkColor toSkColor() const; -- cgit v1.2.3