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

Side by Side Diff: remoting/host/mac/scoped_pixel_buffer_object.h

Issue 11470028: Move screen capturers to remoting/capturer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_HOST_SCOPED_PIXEL_BUFFER_OBJECT_H_
6 #define REMOTING_HOST_SCOPED_PIXEL_BUFFER_OBJECT_H_
7
8 #include <OpenGL/CGLMacro.h>
9 #include <OpenGL/OpenGL.h>
10 #include "base/basictypes.h"
11
12 namespace remoting {
13
14 class ScopedPixelBufferObject {
15 public:
16 ScopedPixelBufferObject();
17 ~ScopedPixelBufferObject();
18
19 bool Init(CGLContextObj cgl_context, int size_in_bytes);
20 void Release();
21
22 GLuint get() const { return pixel_buffer_object_; }
23
24 private:
25 CGLContextObj cgl_context_;
26 GLuint pixel_buffer_object_;
27
28 DISALLOW_COPY_AND_ASSIGN(ScopedPixelBufferObject);
29 };
30
31 } // namespace remoting
32
33 #endif // REMOTING_HOST_SCOPED_PIXEL_BUFFER_OBJECT_H_
OLDNEW
« no previous file with comments | « remoting/host/linux/x_server_pixel_buffer.cc ('k') | remoting/host/mac/scoped_pixel_buffer_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698