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

Unified Diff: remoting/client/jni/jni_frame_consumer.cc

Issue 23677011: Byte-swap the video frame pixels before passing them to Java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add PixelFormat to FrameConsumer interface Created 7 years, 3 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
Index: remoting/client/jni/jni_frame_consumer.cc
diff --git a/remoting/client/jni/jni_frame_consumer.cc b/remoting/client/jni/jni_frame_consumer.cc
index 8f8cfc6e9760d7d7ec1a92094e18b07c1ac43f1c..e6613c9eb57473265b823d7db1676b1eed8fdc33 100644
--- a/remoting/client/jni/jni_frame_consumer.cc
+++ b/remoting/client/jni/jni_frame_consumer.cc
@@ -108,6 +108,10 @@ void JniFrameConsumer::SetSourceSize(const SkISize& source_size,
&JniFrameConsumer::AllocateBuffer, base::Unretained(this)));
}
+FrameConsumer::PixelFormat JniFrameConsumer::GetPixelFormat() {
+ return FORMAT_RGBA;
+}
+
void JniFrameConsumer::AllocateBuffer() {
// Only do anything if we're not being destructed.
if (!in_dtor_) {

Powered by Google App Engine
This is Rietveld 408576698