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

Unified Diff: remoting/client/frame_consumer_proxy.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
« no previous file with comments | « remoting/client/frame_consumer_proxy.h ('k') | remoting/client/jni/jni_frame_consumer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/frame_consumer_proxy.cc
diff --git a/remoting/client/frame_consumer_proxy.cc b/remoting/client/frame_consumer_proxy.cc
index 4c7d79f53b217ad67b6ba1af4f55198a728b9625..2913dcf45b990778557f2140a80994459329d9b6 100644
--- a/remoting/client/frame_consumer_proxy.cc
+++ b/remoting/client/frame_consumer_proxy.cc
@@ -57,11 +57,17 @@ void FrameConsumerProxy::SetSourceSize(
frame_consumer_->SetSourceSize(source_size, source_dpi);
}
+FrameConsumer::PixelFormat FrameConsumerProxy::GetPixelFormat() {
+ return pixel_format_;
Sergey Ulanov 2013/09/27 21:51:13 This value is set on a different thread. It's not
Lambros 2013/09/28 00:22:18 Done.
+}
+
void FrameConsumerProxy::Attach(
const base::WeakPtr<FrameConsumer>& frame_consumer) {
DCHECK(task_runner_->BelongsToCurrentThread());
DCHECK(frame_consumer_.get() == NULL);
frame_consumer_ = frame_consumer;
+
+ pixel_format_ = frame_consumer_->GetPixelFormat();
}
FrameConsumerProxy::~FrameConsumerProxy() {
« no previous file with comments | « remoting/client/frame_consumer_proxy.h ('k') | remoting/client/jni/jni_frame_consumer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698