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

Unified Diff: remoting/client/plugin/pepper_view.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: rebase (for Skia removal) 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/plugin/pepper_view.cc
diff --git a/remoting/client/plugin/pepper_view.cc b/remoting/client/plugin/pepper_view.cc
index a0f6ac4b01943dc9d290c9b2bebe98b53536a708..6a47396cebd3ae8bf728dc89cc02ce3bf9606ed2 100644
--- a/remoting/client/plugin/pepper_view.cc
+++ b/remoting/client/plugin/pepper_view.cc
@@ -205,6 +205,10 @@ void PepperView::SetSourceSize(const webrtc::DesktopSize& source_size,
instance_->SetDesktopSize(source_size, source_dpi);
}
+FrameConsumer::PixelFormat PepperView::GetPixelFormat() {
+ return FORMAT_BGRA;
+}
+
webrtc::DesktopFrame* PepperView::AllocateBuffer() {
if (buffers_.size() >= kMaxPendingBuffersCount)
return NULL;

Powered by Google App Engine
This is Rietveld 408576698