Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: remoting/host/capturer_mac.cc

Issue 5139006: FBTF: Remove unneeded headers from base/ (part 10) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac, cros build Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/capturer_linux.cc ('k') | remoting/host/session_manager_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 namespace remoting { 13 namespace remoting {
12 14
13 CapturerMac::CapturerMac(MessageLoop* message_loop) 15 CapturerMac::CapturerMac(MessageLoop* message_loop)
14 : Capturer(message_loop), 16 : Capturer(message_loop),
15 cgl_context_(NULL) { 17 cgl_context_(NULL) {
16 // TODO(dmaclach): move this initialization out into session_manager, 18 // TODO(dmaclach): move this initialization out into session_manager,
17 // or at least have session_manager call into here to initialize it. 19 // or at least have session_manager call into here to initialize it.
18 CGError err = 20 CGError err =
19 CGRegisterScreenRefreshCallback(CapturerMac::ScreenRefreshCallback, 21 CGRegisterScreenRefreshCallback(CapturerMac::ScreenRefreshCallback,
20 this); 22 this);
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 CGDisplayChangeSummaryFlags flags, 161 CGDisplayChangeSummaryFlags flags,
160 void *user_parameter) { 162 void *user_parameter) {
161 if ((display == CGMainDisplayID()) && 163 if ((display == CGMainDisplayID()) &&
162 !(flags & kCGDisplayBeginConfigurationFlag)) { 164 !(flags & kCGDisplayBeginConfigurationFlag)) {
163 CapturerMac *capturer = reinterpret_cast<CapturerMac *>(user_parameter); 165 CapturerMac *capturer = reinterpret_cast<CapturerMac *>(user_parameter);
164 capturer->ScreenConfigurationChanged(); 166 capturer->ScreenConfigurationChanged();
165 } 167 }
166 } 168 }
167 169
168 } // namespace remoting 170 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/capturer_linux.cc ('k') | remoting/host/session_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698