aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core
diff options
context:
space:
mode:
authorGravatar dvonbeck <dvonbeck@google.com>2016-08-19 11:23:15 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-19 11:23:15 -0700
commitaf0f6efa3502f03b52747f0ede5399e075dbfe5d (patch)
tree33530679059dc14083c60bf741d215c320b2a264 /include/core
parent71c5eee9d55af9b93696b8825561f986cb3b7b9b (diff)
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
Diffstat (limited to 'include/core')
-rw-r--r--include/core/SkColor.h2
1 files changed, 2 insertions, 0 deletions
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;