| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "remoting/host/capturer_mac.h" | 5 #include "remoting/host/capturer_mac.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <OpenGL/CGLMacro.h> | 9 #include <OpenGL/CGLMacro.h> |
| 10 | 10 |
| 11 #include "base/logging.h" | |
| 12 | |
| 13 namespace remoting { | 11 namespace remoting { |
| 14 | 12 |
| 15 CapturerMac::CapturerMac(MessageLoop* message_loop) | 13 CapturerMac::CapturerMac(MessageLoop* message_loop) |
| 16 : Capturer(message_loop), | 14 : Capturer(message_loop), |
| 17 cgl_context_(NULL) { | 15 cgl_context_(NULL) { |
| 18 // TODO(dmaclach): move this initialization out into session_manager, | 16 // TODO(dmaclach): move this initialization out into session_manager, |
| 19 // or at least have session_manager call into here to initialize it. | 17 // or at least have session_manager call into here to initialize it. |
| 20 CGError err = | 18 CGError err = |
| 21 CGRegisterScreenRefreshCallback(CapturerMac::ScreenRefreshCallback, | 19 CGRegisterScreenRefreshCallback(CapturerMac::ScreenRefreshCallback, |
| 22 this); | 20 this); |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 capturer->ScreenConfigurationChanged(); | 164 capturer->ScreenConfigurationChanged(); |
| 167 } | 165 } |
| 168 } | 166 } |
| 169 | 167 |
| 170 // static | 168 // static |
| 171 Capturer* Capturer::Create(MessageLoop* message_loop) { | 169 Capturer* Capturer::Create(MessageLoop* message_loop) { |
| 172 return new CapturerMac(message_loop); | 170 return new CapturerMac(message_loop); |
| 173 } | 171 } |
| 174 | 172 |
| 175 } // namespace remoting | 173 } // namespace remoting |
| OLD | NEW |