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

Unified Diff: remoting/base/util.h

Issue 2148743005: [Remoting Android] Cursor & Cursor Feedback for OpenGL Renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Swap BGRA to RGBA Created 4 years, 5 months 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
« no previous file with comments | « no previous file | remoting/base/util.cc » ('j') | remoting/base/util.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/util.h
diff --git a/remoting/base/util.h b/remoting/base/util.h
index 3294ceebb03df9c3b66521106c14e0568a6a98f3..90215eb4b6b54dd70fe113f2d30e7275fb842740 100644
--- a/remoting/base/util.h
+++ b/remoting/base/util.h
@@ -30,6 +30,10 @@ void CopyRGB32Rect(const uint8_t* source_buffer,
const webrtc::DesktopRect& dest_buffer_rect,
const webrtc::DesktopRect& dest_rect);
+// Copy consecutive block of RGBA32 or BGRA32 image and meanwhile swaps the R
+// and B channel. |length| should be multiple of 4.
+void CopyAndSwapRB(const uint8_t* source, uint8_t* dest, int length);
+
// Replaces every occurrence of "\n" in a string by "\r\n".
std::string ReplaceLfByCrLf(const std::string& in);
« no previous file with comments | « no previous file | remoting/base/util.cc » ('j') | remoting/base/util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698