| 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 #ifndef REMOTING_HOST_CAPTURER_MAC_H_ | 5 #ifndef REMOTING_HOST_CAPTURER_MAC_H_ |
| 6 #define REMOTING_HOST_CAPTURER_MAC_H_ | 6 #define REMOTING_HOST_CAPTURER_MAC_H_ |
| 7 | 7 |
| 8 #include "remoting/host/capturer.h" | 8 #include "remoting/host/capturer.h" |
| 9 #include <ApplicationServices/ApplicationServices.h> | 9 #include <ApplicationServices/ApplicationServices.h> |
| 10 #include <OpenGL/OpenGL.h> | 10 #include <OpenGL/OpenGL.h> |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 size_t count, | 36 size_t count, |
| 37 const CGRect *rect_array, | 37 const CGRect *rect_array, |
| 38 void *user_parameter); | 38 void *user_parameter); |
| 39 static void DisplaysReconfiguredCallback(CGDirectDisplayID display, | 39 static void DisplaysReconfiguredCallback(CGDirectDisplayID display, |
| 40 CGDisplayChangeSummaryFlags flags, | 40 CGDisplayChangeSummaryFlags flags, |
| 41 void *user_parameter); | 41 void *user_parameter); |
| 42 | 42 |
| 43 void ReleaseBuffers(); | 43 void ReleaseBuffers(); |
| 44 CGLContextObj cgl_context_; | 44 CGLContextObj cgl_context_; |
| 45 scoped_array<uint8> buffers_[kNumBuffers]; | 45 scoped_array<uint8> buffers_[kNumBuffers]; |
| 46 scoped_array<uint8> flip_buffer_; |
| 46 DISALLOW_COPY_AND_ASSIGN(CapturerMac); | 47 DISALLOW_COPY_AND_ASSIGN(CapturerMac); |
| 47 }; | 48 }; |
| 48 | 49 |
| 49 } // namespace remoting | 50 } // namespace remoting |
| 50 | 51 |
| 51 #endif // REMOTING_HOST_CAPTURER_MAC_H_ | 52 #endif // REMOTING_HOST_CAPTURER_MAC_H_ |
| OLD | NEW |