| Index: remoting/host/mac/scoped_pixel_buffer_object.h
|
| diff --git a/remoting/host/mac/scoped_pixel_buffer_object.h b/remoting/host/mac/scoped_pixel_buffer_object.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..45ecfc10d6a8654178e2654eeb19516b3f74e614
|
| --- /dev/null
|
| +++ b/remoting/host/mac/scoped_pixel_buffer_object.h
|
| @@ -0,0 +1,33 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef REMOTING_HOST_SCOPED_PIXEL_BUFFER_OBJECT_H_
|
| +#define REMOTING_HOST_SCOPED_PIXEL_BUFFER_OBJECT_H_
|
| +
|
| +#include <OpenGL/CGLMacro.h>
|
| +#include <OpenGL/OpenGL.h>
|
| +#include "base/basictypes.h"
|
| +
|
| +namespace remoting {
|
| +
|
| +class ScopedPixelBufferObject {
|
| + public:
|
| + ScopedPixelBufferObject();
|
| + ~ScopedPixelBufferObject();
|
| +
|
| + bool Init(CGLContextObj cgl_context, int size_in_bytes);
|
| + void Release();
|
| +
|
| + GLuint get() const { return pixel_buffer_object_; }
|
| +
|
| + private:
|
| + CGLContextObj cgl_context_;
|
| + GLuint pixel_buffer_object_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ScopedPixelBufferObject);
|
| +};
|
| +
|
| +} // namespace remoting
|
| +
|
| +#endif // REMOTING_HOST_SCOPED_PIXEL_BUFFER_OBJECT_H_
|
|
|