From 1f150eb68c6787409f8e2b578cad2c66b1e3f8dc Mon Sep 17 00:00:00 2001 From: Aaron Krajeski Date: Wed, 25 May 2022 18:59:44 -0400 Subject: [PATCH] Comment SkColor4f's makeOpaque function Change-Id: I7ef9d50eeb49076dbd71fd7070a0f849085c4dc7 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/543978 Commit-Queue: Brian Osman Reviewed-by: Brian Osman --- include/core/SkColor.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/core/SkColor.h b/include/core/SkColor.h index a6e63def23..a3fcb40d69 100644 --- a/include/core/SkColor.h +++ b/include/core/SkColor.h @@ -405,6 +405,11 @@ struct SkRGBA4f { uint32_t toBytes_RGBA() const; static SkRGBA4f FromBytes_RGBA(uint32_t color); + /** + Returns a copy of the SkRGBA4f but with alpha component set to 1.0f. + + @return opaque color + */ SkRGBA4f makeOpaque() const { return { fR, fG, fB, 1.0f }; }