Comment SkColor4f's makeOpaque function
Change-Id: I7ef9d50eeb49076dbd71fd7070a0f849085c4dc7 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/543978 Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
This commit is contained in:
parent
d05aff78a0
commit
1f150eb68c
@ -405,6 +405,11 @@ struct SkRGBA4f {
|
|||||||
uint32_t toBytes_RGBA() const;
|
uint32_t toBytes_RGBA() const;
|
||||||
static SkRGBA4f FromBytes_RGBA(uint32_t color);
|
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 {
|
SkRGBA4f makeOpaque() const {
|
||||||
return { fR, fG, fB, 1.0f };
|
return { fR, fG, fB, 1.0f };
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user