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

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: 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/frame_consumer_proxy.cc
diff --git a/remoting/client/frame_consumer_proxy.cc b/remoting/client/frame_consumer_proxy.cc
index 070130cf8ccacb57ef3083f6fa3df33ec0d40850..3905b426b6608d05d5197b3bc389049da62fdd5e 100644
--- a/remoting/client/frame_consumer_proxy.cc
+++ b/remoting/client/frame_consumer_proxy.cc
@@ -54,11 +54,17 @@ void FrameConsumerProxy::SetSourceSize(const SkISize& source_size,
frame_consumer_->SetSourceSize(source_size, source_dpi);
}
+FrameConsumer::PixelFormat FrameConsumerProxy::GetPixelFormat() {
+ return pixel_format_;
+}
+
void FrameConsumerProxy::Attach(
const base::WeakPtr<FrameConsumer>& frame_consumer) {
DCHECK(task_runner_->BelongsToCurrentThread());
DCHECK(frame_consumer_.get() == NULL);
frame_consumer_ = frame_consumer;
+
Sergey Ulanov 2013/09/27 21:51:13 remove this line.
Lambros 2013/09/28 00:22:18 Done.
+ pixel_format_ = frame_consumer_->GetPixelFormat();
}
FrameConsumerProxy::~FrameConsumerProxy() {

Powered by Google App Engine
This is Rietveld 408576698