Chromium Code Reviews| Index: webrtc/modules/desktop_capture/rgba_color.h |
| diff --git a/webrtc/modules/desktop_capture/rgba_color.h b/webrtc/modules/desktop_capture/rgba_color.h |
| index 1236d03ee67c21c0c13d4c3802a5936ed97ae13a..c5b6b8d60bd790873813702b7e6daa61cb85349f 100644 |
| --- a/webrtc/modules/desktop_capture/rgba_color.h |
| +++ b/webrtc/modules/desktop_capture/rgba_color.h |
| @@ -40,6 +40,10 @@ struct RgbaColor final { |
| // instance from the ToUInt32() result of another RgbaColor instance. |
| explicit RgbaColor(uint32_t bgra); |
| + // Converts an int to uint32_t, and creates a RGBA instance. This constructor |
| + // helps users to write RgbaColor(0) without ambiguous conversion error. |
| + explicit RgbaColor(int bgra); |
|
Sergey Ulanov
2016/11/19 02:11:40
Do you still need this? I think RgbaColor(0U) can
Hzj_jie
2016/11/19 05:10:59
Done.
|
| + |
| // Returns true if |this| and |right| is the same color. |
| bool operator==(const RgbaColor& right) const; |