diff options
Diffstat (limited to 'remoting/host')
-rw-r--r-- | remoting/host/capturer_mac.cc | 2 | ||||
-rw-r--r-- | remoting/host/capturer_mac_unittest.cc | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/remoting/host/capturer_mac.cc b/remoting/host/capturer_mac.cc index 2ed4c65..7b5d942 100644 --- a/remoting/host/capturer_mac.cc +++ b/remoting/host/capturer_mac.cc @@ -25,6 +25,7 @@ CapturerMac::CapturerMac(MessageLoop* message_loop) err = CGDisplayRegisterReconfigurationCallback( CapturerMac::DisplaysReconfiguredCallback, this); DCHECK_EQ(err, kCGErrorSuccess); + ScreenConfigurationChanged(); } CapturerMac::~CapturerMac() { @@ -48,6 +49,7 @@ void CapturerMac::ScreenConfigurationChanged() { width_ = CGDisplayPixelsWide(mainDevice); height_ = CGDisplayPixelsHigh(mainDevice); + pixel_format_ = media::VideoFrame::RGB32; bytes_per_row_ = width_ * sizeof(uint32_t); size_t buffer_size = height() * bytes_per_row_; for (int i = 0; i < kNumBuffers; ++i) { diff --git a/remoting/host/capturer_mac_unittest.cc b/remoting/host/capturer_mac_unittest.cc index f1f0d6c..02db8da 100644 --- a/remoting/host/capturer_mac_unittest.cc +++ b/remoting/host/capturer_mac_unittest.cc @@ -18,7 +18,6 @@ class CapturerMacTest : public testing::Test { protected: virtual void SetUp() { capturer_.reset(new CapturerMac(NULL)); - capturer_->ScreenConfigurationChanged(); rects_.insert(gfx::Rect(0, 0, 10, 10)); } |