Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(781)

Unified Diff: webrtc/modules/desktop_capture/rgba_color.cc

Issue 2500883004: Add DesktopFrame rotation functions (Closed)
Patch Set: Resolve review comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/desktop_capture/rgba_color.cc
diff --git a/webrtc/modules/desktop_capture/rgba_color.cc b/webrtc/modules/desktop_capture/rgba_color.cc
index 6d91de4275cd6b00c8c1c6e2c23dca55e7ef1397..e97b151d16a1f7fe2574c119ae8ac57fb6551c25 100644
--- a/webrtc/modules/desktop_capture/rgba_color.cc
+++ b/webrtc/modules/desktop_capture/rgba_color.cc
@@ -41,6 +41,8 @@ RgbaColor::RgbaColor(const uint8_t* bgra)
RgbaColor::RgbaColor(uint32_t bgra)
: RgbaColor(reinterpret_cast<uint8_t*>(&bgra)) {}
+RgbaColor::RgbaColor(int bgra) : RgbaColor(static_cast<uint32_t>(bgra)) {}
+
bool RgbaColor::operator==(const RgbaColor& right) const {
return blue == right.blue && green == right.green && red == right.red &&
AlphaEquals(alpha, right.alpha);

Powered by Google App Engine
This is Rietveld 408576698