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() { |