Index: remoting/host/video_frame_capturer_mac.mm |
diff --git a/remoting/host/video_frame_capturer_mac.mm b/remoting/host/video_frame_capturer_mac.mm |
index ccf9ebc38163b6a2539e9effd7e70ee2bd61d37e..8642e69618ec79f293cba9a0c42260e996cef939 100644 |
--- a/remoting/host/video_frame_capturer_mac.mm |
+++ b/remoting/host/video_frame_capturer_mac.mm |
@@ -679,8 +679,10 @@ void VideoFrameCapturerMac::ScreenConfigurationChanged() { |
err = CGLCreateContext(pixel_format, NULL, &cgl_context_); |
DCHECK_EQ(err, kCGLNoError); |
CGLDestroyPixelFormat(pixel_format); |
- CGLSetFullScreenOnDisplay(cgl_context_, |
- CGDisplayIDToOpenGLDisplayMask(mainDevice)); |
+#pragma clang diagnostic push |
+#pragma clang diagnostic ignored "-Wdeprecated-declarations" |
+ CGLSetFullScreen(cgl_context_); |
Lambros
2012/08/01 21:03:45
Can you add a comment explaining why you're using
Jamie
2012/08/01 21:11:48
Done.
|
+#pragma clang diagnostic pop |
CGLSetCurrentContext(cgl_context_); |
size_t buffer_size = width * height * sizeof(uint32_t); |