Temporary fix for Mac black-screen issue.

BUG=139930


Review URL: https://chromiumcodereview.appspot.com/10850006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149522 0039d316-1c4b-4281-b951-d872f2087c98
parent ba30900d
...@@ -679,8 +679,15 @@ void VideoFrameCapturerMac::ScreenConfigurationChanged() { ...@@ -679,8 +679,15 @@ void VideoFrameCapturerMac::ScreenConfigurationChanged() {
err = CGLCreateContext(pixel_format, NULL, &cgl_context_); err = CGLCreateContext(pixel_format, NULL, &cgl_context_);
DCHECK_EQ(err, kCGLNoError); DCHECK_EQ(err, kCGLNoError);
CGLDestroyPixelFormat(pixel_format); CGLDestroyPixelFormat(pixel_format);
CGLSetFullScreenOnDisplay(cgl_context_, #pragma clang diagnostic push
CGDisplayIDToOpenGLDisplayMask(mainDevice)); #pragma clang diagnostic ignored "-Wdeprecated-declarations"
// TODO(jamiewalch): The non-deprecated equivalent code is shown below, but
// it causes 10.6 Macs' displays to go black. Find out why.
//
// CGLSetFullScreenOnDisplay(cgl_context_,
// CGDisplayIDToOpenGLDisplayMask(mainDevice));
CGLSetFullScreen(cgl_context_);
#pragma clang diagnostic pop
CGLSetCurrentContext(cgl_context_); CGLSetCurrentContext(cgl_context_);
size_t buffer_size = width * height * sizeof(uint32_t); size_t buffer_size = width * height * sizeof(uint32_t);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment