Chromium Code Reviews| 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..2969cbd87e45b04f674478e340e80f42e490215c |
| --- /dev/null |
| +++ b/remoting/client/gl_cursor_feedback_texture.h |
| @@ -0,0 +1,37 @@ |
| +// 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 <vector> |
| + |
| +#include "base/macros.h" |
| +#include "base/memory/singleton.h" |
| + |
| +namespace remoting { |
| + |
| +// This is a singleton for generating and holding the the cursor feedback |
| +// texture. |
| +class GlCursorFeedbackTexture { |
| + public: |
| + static GlCursorFeedbackTexture* GetInstance(); |
| + |
| + const std::vector<uint8_t>& GetTexture() const; |
| + |
| + static const int kTextureWidth; |
|
Sergey Ulanov
2016/07/21 21:55:31
constants should precede everything else. Move thi
Yuwei
2016/07/21 22:15:15
Done.
|
| + |
| + private: |
| + GlCursorFeedbackTexture(); |
| + ~GlCursorFeedbackTexture(); |
| + |
| + friend struct base::DefaultSingletonTraits<GlCursorFeedbackTexture>; |
| + |
| + std::vector<uint8_t> texture_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(GlCursorFeedbackTexture); |
| +}; |
| + |
| +} // namespace remoting |
| +#endif // REMOTING_CLIENT_GL_CURSOR_FEEDBACK_TEXTURE_H_ |