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

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

Issue 6610007: Fix up mac capturer to flip image. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/remoting/client/appengine/static_files
Patch Set: Created 9 years, 9 months 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 | « no previous file | remoting/host/capturer_mac.cc » ('j') | remoting/host/capturer_mac.cc » ('J')
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 #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
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_
OLDNEW
« no previous file with comments | « no previous file | remoting/host/capturer_mac.cc » ('j') | remoting/host/capturer_mac.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698