| Index: remoting/client/gl_cursor_feedback_texture.h
|
| diff --git a/remoting/client/gl_cursor_feedback_texture.h b/remoting/client/gl_cursor_feedback_texture.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d9e293dc3ea2d4d5edef9792818e680cd872a3b1
|
| --- /dev/null
|
| +++ b/remoting/client/gl_cursor_feedback_texture.h
|
| @@ -0,0 +1,33 @@
|
| +// Copyright 2016 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_CLIENT_GL_CURSOR_FEEDBACK_TEXTURE_H_
|
| +#define REMOTING_CLIENT_GL_CURSOR_FEEDBACK_TEXTURE_H_
|
| +
|
| +#include <memory>
|
| +
|
| +#include "base/macros.h"
|
| +#include "base/memory/singleton.h"
|
| +
|
| +namespace remoting {
|
| +
|
| +class GlCursorFeedbackTexture {
|
| + public:
|
| + static GlCursorFeedbackTexture* GetInstance();
|
| + const uint8_t* GetTexture() const;
|
| + int GetTextureDiameter() const;
|
| +
|
| + private:
|
| + GlCursorFeedbackTexture();
|
| + ~GlCursorFeedbackTexture();
|
| +
|
| + friend struct base::DefaultSingletonTraits<GlCursorFeedbackTexture>;
|
| +
|
| + std::unique_ptr<uint32_t[]> texture_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(GlCursorFeedbackTexture);
|
| +};
|
| +
|
| +} // namespace remoting
|
| +#endif // REMOTING_CLIENT_GL_CURSOR_FEEDBACK_TEXTURE_H_
|
|
|